@govuk-react/input-field
TypeScript icon, indicating that this package has built-in type declarations

0.10.6 • Public • Published

InputField

Import

  import InputField from '@govuk-react/input-field';

Use the text input component when you need to let users enter text that’s no longer than a single line, such as their name or phone number.

Properties

Prop Required Default Type Description
error boolean Apply error state styling to the component
hint undefined ReactNode
input {} InputProps
margin Margin | Margin[]
mb string | number
meta {} { error?: string | string[]; touched?: boolean; }
padding Padding | Padding[]

Dependencies (6)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @govuk-react/input-field

    Weekly Downloads

    2,888

    Version

    0.10.6

    License

    MIT

    Unpacked Size

    15.2 kB

    Total Files

    12

    Last publish

    Collaborators

    • loque-
    • steve_sims
    • petelockey
    • penx
    • marksy