Theme

npm_versionnpm Paragon package page

Provide a label for a form control. Form.Label uses a FormGroupContext (provided by Form.Group) to ensure that it has an htmlFor attribute matching the Form.Control according to WCAG guidelines.

Basic usage

Any Paragon component or export may be added to the code example.

Inline usage

Any Paragon component or export may be added to the code example.

Usage with grouped control

Any Paragon component or export may be added to the code example.

Sizes

Any Paragon component or export may be added to the code example.

See Form.Control for floating labels

Any Paragon component or export may be added to the code example.

Theme Variables#

CSS VariableComputed Value










Props API#

FormLabel Props API
  • className string

    Specifies class name to append to the base element.

  • children node Required

    Specifies contents of the component.

  • isInline bool

    Specifies whether the component should be displayed with inline styling.

    Defaultfalse
  • size enum'sm' | 'lg'

    Specifies size of the component.

Usage Insights#

FormLabel

Project NameParagon VersionInstance Count
frontend-app-course-authoring21.5.61
frontend-app-learner-dashboard20.46.22
prospectus20.46.27