Input

A component for all user input. It is responsible for rendering select, textarea, and inputs of any type with the appropriate bootstrap class name.

Extra props supplied to Input will be passed through to the html node.

Text

Select

Textarea

Date

File

Range

Input Props API
  • type enum Required'textarea' | 'select' | 'checkbox' | 'color' | 'date' | 'datetime' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' Required

    specifies the type of component. One of select, textarea, or any valid type for an html input tag.

  • className string Required

    specifies the className in addition to a bootstrap class name.

  • options shape Required {
    label: string Required | number Required,
    value: string Required | number Required,
    disabled: bool,
    group: shape Required {
    label: string Required | number Required,
    value: string Required | number Required,
    disabled: bool,
    }
    []
    ,
    }
    [] Required

    should be used to specify the options of an Input of type select

    Default[]