Skip to content
Mizen UI
Docs

IntroductionInstallationCLIStylingFoundationsThemingCompositionIntegrationsAccessibilityFor agents

useCopyToClipboard

AccordionAspect RatioCardCollapsibleFrameGridGroupInlineScroll AreaSectionSeparatorSpacerStack

BlockquoteCitationCodeHeadingKbdLabelLinkTextVisually Hidden

ButtonButton GroupToggleToggle groupToolbar

CalendarCheckboxCheckbox groupComboboxDate pickerDate range pickerDate-Time InputFieldFieldsetFile UploadFormInputInput groupNumber fieldOTP FieldRadio groupSelectSliderSwitchTextareaTime Input

BreadcrumbMenubarNavigation MenuPaginationSegmented ControlStepperTabs

Alert dialogCommandContext MenuDialogDrawerMenuPopoverPreview CardSheetTooltip

AlertBadgeEmptyError StateMeterProgressSkeletonSpinnerStatus dotToast

Activity FeedAvatarAvatar GroupData TableListMetricOverflow ListProperty ListTableTokenTree

Area ChartBar ListCalendar HeatmapCategory ComparisonChart FrameChart LegendChart TooltipDistributionFunnelHeatmapMetric TrendPart-to-WholeProgress RingsRadar ChartRadial BarsSankey ChartScatter ChartScore GaugeTime Series

Diagram

AttachmentCarouselCode BlockLightboxMarkdownThumbnailTimestamp

Agent ThinkingApproval CardComposerConversationInline CitationMessageMessage ScrollerQuestion CardSourcesStreaming TextSuggestionTask ListTerminalTool Call

On this page

  • Preview
  • Usage
  • Anatomy
  • Examples
  • Account profile
  • Managed billing
  • Recommendations
  • Usage boundaries
  • API reference

Forms

Fieldset

Groups related form controls and labels under a shared accessible legend.

idle

Usage

import { Fieldset, FieldsetLegend } from "@mizen-labs/ui";

Anatomy

The parts and how they nest, taken from the preview above.

<Fieldset>
	<FieldsetLegend />
</Fieldset>

Examples

Account profile

Related personal details belong in one fieldset.

Managed billing

Keep unavailable settings visible and explain who can edit them.

Recommendations

GuidancePractice
Do

Use a legend that describes the shared question. Keep individual control labels inside the group.

Usage boundaries

GuidanceBoundary
Scope

Use Field for one control. A visual panel alone does not establish a form group.

API reference

Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.

PropTypeDefaultDescription
disabledbooleanfalseWhether the fieldset and its child controls should ignore user interaction.
renderReactElement | ((props: HTMLProps, state: FieldsetRootState) => ReactElement)—Custom element or component render function for polymorphic composition.
refRef<HTMLFieldSetElement> | Ref<HTMLDivElement>—React ref forwarded to the underlying element.
FieldsetFieldsetProps"fieldset"Root container grouping shared legend and related form controls.
FieldsetLegendFieldsetLegendProps"div"Accessible legend associated with the fieldset; styled with semantic content foreground and semibold weight.
FieldsetPrimitivetypeof FieldsetPrimitive—Low-level Base UI fieldset primitive namespace.
PreviousFieldNextFile Upload
Contact details

Used for account notifications.

Personal details

Used for notifications and account verification.

Billing settings (disabled)

Managed by organization administrators.