Skip to content
ghostui

Fieldset

A native fieldset element with an easily stylable legend.

Preview

Payment method
VISA

Installation

Install

Basic usage

Structures

Examples

Payment joint IFTA

Persistent labels keep cardholder, card number, expiry, and CVV independently named and focusable inside one boundary. Edit or leave expiry and CVV to see caller-owned validation; digits are filtered and the initial values are valid.

Payment method
VISA

Address joint IFTA

The address example keeps the optional second line empty by default, composes the canonical Select for country, and validates the postal boundary on edit or blur without a submit action.

Delivery address

Disabled joint group

Keep saved values visible while the group is locked.

Saved billing contact

API reference

For inherited behavior and additional part properties, see the Base UI Fieldset API.

Joint, Row, and Cell accept native div attributes, className and div refs. Joint owns the shared boundary; Row groups adjacent cells; each Cell contains its own Field with placement="ifta". Root and Legend retain Base UI render, state callback and ref support.