Fieldset

Groups and labels related form fields.

It implements the <fieldset> element.

Props

Examples

Grouped checkboxes.
import { Fieldset, Textbox } from 'device-agnostic-ui'

<Fieldset legend="Options">
  <Toggle
    inputProps={{
      type: 'radio',
      name: 'options',
      value: 'a',
      defaultChecked: true
    }}
  >
    Label A
  </Toggle>
  <Toggle
    inputProps={{
      type: 'radio',
      name: 'options',
      value: 'b'
    }}
  >
    Label B
  </Toggle>
</Fieldset>
Options

Tags