Link Search Menu Expand Document (external link)

Home > @department-of-veterans-affairs/va-forms-system-core > CheckboxField

CheckboxField variable

CheckboxField component is a simple form building component that displays a checkbox for the user.

Signature:

CheckboxField: (props: CheckboxProps) => JSX.Element

Remarks

A description can be passed in two different ways 1 - Pass a string variable through the description prop 2 - Inside a tag, create a child element with a slot="description" attribute, while setting the normal description prop to null. HTML can then be passed through the slot and will render above the CheckboxField.