Fragiola

Fields

Fieldset

A group of fields under one name: a native fieldset whose Legend reads like a field's label.

npx shadcn@latest add @fragiola/fieldset
Fieldset
Gallery

A fieldset names a group of Fields — an address, a card's details — and is named by its Legend (aria-labelledby). disabled on the Root disables every field in it.

Composition

The legend is a label: field.label, the size and weight of a field's name, so the group's name reads like one field's. The root draws no box — no border, no padding — only a column of fields a gap apart, like a form's; the fields are the boxes.

Bases

Both bases' Fieldset behave the same: a native <fieldset> and a div legend that names it.

Parts

PartSource
Rootprimitive Fieldset.Root + a flex column
Legendprimitive Fieldset.Legend + field.label()