Foundation

Main View


Components

Charts

Dialogs

Framer Animations

Forms

Grids

Typography


Tools


UiInput


Package: @uireact/form

Component used to render input fields

1. Make sure you install peer dependencies first:

Expand peer dependencies

2. Install package:

npm i -S @uireact/form

  <UiInput
    placeholder="First Name"
    onChange={(value) => {
      console.log(value);
    }}
  />
  <UiInput
    placeholder="First Name"
    onChange={(value) => {
      console.log(value);
    }}
    size="xlarge"
  />
  <UiInput label="First Name" labelOnTop />
  <UiInput label="Search" placeholder="Type your search" labelOnTop icon={<UiIcon icon="Search" />} />
  <UiInput label="First Name" padding={{ all: 'five' }} />
  <UiInput label="First Name" disabled />
  <UiInput label="First Name" category="positive" />
  <UiInput label="First Name" error="Some error" category="error" />
  <UiInput label="Password" labelOnTop type="password" />
  <UiInput label="Number" labelOnTop type="number" value="123" />

This is the browser's basic datepicker, each browser would render it the way it understand it. If you want a controlled datepicker look at the datepicker input component.

  <UiInput label="Date" labelOnTop type="date" />