Skip to main content

Input

A wrapper for the html "input" element. Comes with a variety of validation styles and default styles that extend to other elements and components. These include: select, checkboxe and radio.

Implementation#

import { Input } from "slipstream-ui";
const Example = () => <Input />;

Example#

Example
<Input placeholder="First Name" type="text" name="firstName" />

Validation States#

Example
<Input success />
<Input invalid />
<Input disabled />

Size#

Example
<Input size="sm" />
<Input size="md" />
<Input size="lg" />

Rounded#

Example
<Input rounded />

Right-To-Left (rtl)#

Example
<Input rtl />

Props#

AttributeTypeValueDefault ValueDescription
successbooleantrue/falseGreen border surrounding input element
invalidbooleantrue/falseRed border surrounding input element
disabledbooleantrue/falseDisabled the input element from user interaction
roundedbooleantrue/falseRounded out corners of input to become more circular in presentation
sizestringsm/md/lgmdIncremental sizing of form elements including input, select, etc...
rtlbooleantrue/falseWhen true, sets element to direction of right-to-left (rtl)