RoadieRoadie
  • Home
  • Brand
  • Foundations
  • Content
  • Tokens
  • Components
  • Charts
  • Widgets
  • Appearance
HomeBrandFoundations
Appearance

Components

  • Navigation

    • Breadcrumb
    • LinkBeta
    • NavigatorAlpha
    • Steps
    • Tabs
  • Layout

    • Accordion
    • CollapsibleBeta
    • PaneAlpha
    • ScrollArea
    • Separator
  • Actions

    • Button
    • IconButton
    • ToggleBeta
    • Toggle groupBeta
    • ToolbarBeta
  • Fields

    • EditorAlpha
    • Field
    • Fieldset
    • Input
    • Label
    • Number fieldBeta
    • OTP fieldBeta
    • Query fieldAlpha
    • Textarea
  • Choices

    • Autocomplete
    • CheckboxBeta
    • Combobox
    • Radio group
    • Select
    • SliderBeta
    • SwitchBeta
  • Date and time

    • CalendarBeta
    • CalendarTile
    • Countdown
    • Dashboard periodBeta
    • Date fieldBeta
    • Date pickerBeta
    • Date range pickerBeta
    • DateTime
    • Duration
    • Time fieldBeta
  • Collections

    • Card
    • Carousel
    • DataTableBeta
    • ListAlpha
    • Marquee
    • RecordGridAlpha
    • RecordTableAlpha
    • SortableAlpha
    • TableBeta
  • Overlays

    • Dialog
    • Drawer
    • MenuBeta
    • Popover
    • ToastBeta
    • Tooltip
  • Status

    • Badge
    • CalloutBeta
    • DeltaBeta
    • Empty state
    • MeterBeta
    • ProgressBeta
    • SkeletonBeta
    • SparklineBeta
    • StatTileBeta
  • Media & brand

    • AvatarBeta
    • Icon Tile
    • Image
    • Logo
    • PatternBeta
    • QR codeBeta
    • SpotIllustration
  • Text

    • Code
    • Highlight
    • KbdBeta
    • Mark
    • Prose

Fieldset

Status
Stable
Added
Components 2.0.08 Apr 2026
Updated
Components 2.3.015 Apr 2026
Docs updated
19 Oct 2026

A compound wrapper for grouping related form fields with a legend.

Import

import { Fieldset } from '@oztix/roadie-components/fieldset'

Examples

Default

<Fieldset>
<Fieldset.Legend>Contact information</Fieldset.Legend>
<Field>
<Field.Label>Name</Field.Label>
<Field.Input placeholder='Your name' />
</Field>

Composition

Fieldset exposes sub-components for legend, helper text, and error text.

With helper text

<Fieldset>
<Fieldset.Legend>Contact information</Fieldset.Legend>
<Fieldset.HelperText>Provide your preferred contact details.</Fieldset.HelperText>
<Field>
<Field.Label>Name</Field.Label>
<Field.Input placeholder='Your name' />

With error text

<Fieldset invalid>
<Fieldset.Legend>Preferences</Fieldset.Legend>
<Fieldset.ErrorText>Choose at least one option.</Fieldset.ErrorText>
</Fieldset>

API reference

Fieldset

invalidboolean

Fieldset.ErrorText

No additional props. It forwards all standard HTML attributes to the underlying element.

Fieldset.HelperText

No additional props. It forwards all standard HTML attributes to the underlying element.

Fieldset.Legend

No additional props. It forwards all standard HTML attributes to the underlying element.

Previous page← FieldNext pageInput →