Components › Forms

Fieldset

Group related form controls under a native legend.

Installation

npx plankui@latest add fieldset

Usage

import { Fieldset } from "@/components/ui/fieldset";

<Fieldset legend="Email preferences"><label><input type="checkbox" /> Weekly digest</label></Fieldset>

API reference

PropTypeDefaultDescription
legendReactNoderequiredVisible label for the group.
disabledbooleanfalseDisables the controls in the group.
childrenReactNodeRelated form controls.

View the source on GitHub