No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

Forms

For capturing information.

Example

The input component enables the user to input text into a form. It takes a type prop.

TextArea

A multi-line text input field. The cols and row props enable you to determine the size of the input field.

Slider

The range slider component enables you to set a min and max props.

Select

The Select component accepts an options prop for an array of values to iterate as options for the user.

Checkbox

The Check component accepts a disabled and type prop. Further support scheduled.

Radio

The Radio component accepts a disabled and type prop. Further support scheduled.

Toggle

The Toggle component accepts an indicatorColor prop.

Usage

import { FormGroup, Label, Select } from 'ui-neu';

<FormGroup>
  <Label>Select</Label>
  <Select options={["egg", "milk", "bread"]}>Choose an option</Select>
</FormGroup>

Props

Props for each of the components are included below. This is still under development and changes are anticipated to occur in upcoming releases.

Check

NameDescriptionDefault
disabled
Select whether input is disabled.
bool
false
id
string
-
label
string
-
name
string
-

Radio

NameDescriptionDefault
disabled
Select whether input is disabled.
bool
false
id
string
-
label
string
-
name
string
-

Form

No inputs found for this component. Read the docs

FormGroup

NameDescriptionDefault
children
Pass children to include text.
string
-

Input

NameDescriptionDefault
placeholder
Placeholder text.
string
-
type
Choose an input type.
string
-
name
string
-
id
string
-

Label

NameDescriptionDefault
children
string
-
id
string
-

Select

NameDescriptionDefault
children
string
-
value
string
-
options*
array
-

Slider

NameDescriptionDefault
min
number
0
max
number
100

TextArea

NameDescriptionDefault
cols
number
3
row
number
3
placeholder
string
-
id
string
-
name
string
-

Toggle

NameDescriptionDefault
indicatorColor
string
'rgba(245, 203, 122, 1)'