Skip to content

Fieldset ​

Legend group, toggleable

One name for a set of controls — a radio or checkbox set, an address, notification preferences. The legend is announced together with each control inside, which a heading above a group is not. For a box around content rather than controls, use Panel or Collapsible.

Basic
Notifications
Billing
  • disabled disables every control inside — the native cascade, no prop-drilling.
  • toggleable puts the legend on a button with v-model:collapsed. Collapsed content is hidden, not removed, so its fields still submit with the form.
  • #legend slot for a legend with markup; the legend prop for plain text.

Usage ​

ts
import { BlessFieldset } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
legendstring—
toggleableboolean—
disabledboolean—
collapsedbooleanfalse

Events

NamePayloadDescription
update:collapsed[value: boolean]

Slots

NameScopeDescription
legend—
default—

Released under the MIT License. Character names and artwork belong to their owners.