TidalUI

Fieldset preview

A native fieldset and legend with linked help, error, requirement copy, and consumer-owned controls.

pro · Forms · primitive

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/fieldset

Import components/ui/tidal.css, components/ui/fieldset.css. Wrap installed components in tidal-scope.

Preview

Fieldset component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/fieldset.css";
import{TidalFieldset}from"./components/ui/fieldset";
export default()=><div className="tidal-scope"><TidalFieldset children={"value"} legend={"value"}/></div>;

API and props

TidalFieldset.children (required)
ReactNode

Required children value accepted by this exported component.

TidalFieldset.legend (required)
ReactNode

Required legend value accepted by this exported component.

TidalFieldset.aria-disabled
Booleanish | undefined

Accessible disabled supplied by the consumer.

TidalFieldset.aria-invalid
boolean | "true" | "false" | "grammar" | "spelling" | undefined

Accessible invalid supplied by the consumer.

TidalFieldset.contentProps
Omit<HTMLAttributes<HTMLDivElement>, "children"> | undefined

Optional content props value accepted by this exported component.

TidalFieldset.description
ReactNode

Optional description value accepted by this exported component.

TidalFieldset.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalFieldset.error
ReactNode

Optional error value accepted by this exported component.

TidalFieldset.requirement
ReactNode

Optional requirement value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas