Fieldset

A legend over a group of controls, such as checkboxes, and a description or error.

Installation

Examples

Default

A Fieldset is a Field for a group of controls, such as checkboxes: its legend names them all, and its note is their description. Its controls sit in a DragToggle, so a drag across its checkboxes flips each one it passes.

demo.tsx
Notify me when

By email and on this device.

Error

error takes the description's place in red, as in a Field.

error.tsx
Who can see it

Choose who can see the album.

Anatomy

Each part's data-slot, which a theme styles, is beside it.