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
disableddisables every control inside — the native cascade, no prop-drilling.toggleableputs the legend on a button withv-model:collapsed. Collapsed content is hidden, not removed, so its fields still submit with the form.#legendslot for a legend with markup; thelegendprop for plain text.
Usage
ts
import { BlessFieldset } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
legend | string | — | |
toggleable | boolean | — | |
disabled | boolean | — | |
collapsed | boolean | false |
Events
| Name | Payload | Description |
|---|---|---|
update:collapsed | [value: boolean] |
Slots
| Name | Scope | Description |
|---|---|---|
legend | — | |
default | — |