Beta v0.6.2

Input

Checkboxes allow the user to select one or more items from a set.

Import


import { Input } from "pier-ui";


Default Input


<Input />


With Label


<Input placeholder="With Label"
label="Name"
type="text"
labelFor="test-id"
id="test-id">


With Floating Label



<Input floatingLabel={true} label="Floating Label" type="text" />


Variants


<Input
variant="outline"
placeholder="outline"
label="Outline"
type="text"
width="100%"/>
<Input
variant="filled"
placeholder="Filled"
label="Filled"
type="text"
width="100%"/>


Colors


<Input
variant="outline"
placeholder="Color"
label="Color"
type="text"
color="F87656"
/>


<Input
variant="outline"
placeholder="Color"
label="Color"
type="text"
focusColor="F87656"
/>




Props

PropDescriptionTypeDefault
labellabel for the inputstring
floatingLabelfloating label for the inputbooleanfalse
classNameclassName for the componentstring
sizeSize of the componentstringbase
colorColor of the componentstringtheme.colors.grey
focusColorfocusColor of the inputstringtheme.colors.grey
disabledbooleanfalse
requiredbooleanfalse
readOnlybooleanfalse