Theme

npm_versionnpm Paragon package page

Form.Group provides its children a context that contains ids and attributes that enable these components to relate to each other according to WCAG guidelines.

Form.Group renders a FormGroupContextProvider which will autogenerate a controlId if none is supplied and offers size, isInvalid, isValid in the context. Form.Control, Form.Label, and Form.Control.Feedback consume this context.

Basic Usage

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

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.

Theme Variables#

CSS VariableComputed Value










Props API#

FormGroup Props API
  • children node Required

    Specifies contents of the component.

  • className string

    Specifies class name to append to the base element.

  • as elementType

    Specifies base element for the component.

    Default'div'
  • controlId string

    Specifies id to use in the group, it will be used as htmlFor in FormLabel and as id in input components. Will be autogenerated if none is supplied.

  • isInvalid bool

    Specifies whether to display components in invalid state, this affects styling.

    Defaultfalse
  • isValid bool

    Specifies whether to display components in valid state, this affects styling.

    Defaultfalse
  • size enum'sm' | 'lg'

    Specifies size for the component.

Usage Insights#

FormGroup

Project NameParagon VersionInstance Count
frontend-app-learner-dashboard20.46.21
prospectus20.46.21