Nomenclature Predictably Misunderstood

    @govuk-react/error-text

    0.9.0 • Public • Published

    ErrorText

    Import

      import ErrorText from '@govuk-react/error-text';

    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 `````` string Text to describe the error

    Keywords

    none

    Install

    npm i @govuk-react/error-text

    DownloadsWeekly Downloads

    3,241

    Version

    0.9.0

    License

    MIT

    Unpacked Size

    17.2 kB

    Total Files

    18

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar