Numerous Pulsating Martians

    @govuk-react/label

    0.9.0 • Public • Published

    Label

    Import

      import Label from '@govuk-react/label';

    Label element to wraps label-text and a form input

    Usage

    Simple

    import { Label, LabelText, HintText, ErrorText, Input } from 'govuk-react'
    
    <Label>
      <LabelText>Example label</LabelText>
      <HintText>Example hint</HintText>
      <ErrorText>Example error</ErrorText>
      <Input value={value} onClick={onClick} />
    </Label>

    References:

    Properties

    Prop Required Default Type Description
    children true `````` node Text for the label
    error false bool Apply error state styling to the component

    Keywords

    none

    Install

    npm i @govuk-react/label

    DownloadsWeekly Downloads

    2,807

    Version

    0.9.0

    License

    MIT

    Unpacked Size

    23.1 kB

    Total Files

    18

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar