Skip to main content
On this pageFunctions

Ui/Fieldset

Functions

descriptionId

functionsource
/** Generates the description element ID from the fieldset's base ID. */
(id: string): string

legendId

functionsource
/** Generates the legend element ID from the fieldset's base ID. */
(id: string): string

view

functionsource
/** Renders an accessible fieldset by building ARIA attribute groups and delegating layout to the consumer's `toView` callback. */
<ParentMessage>(config: ViewConfig<ParentMessage>): Html

Types

FieldsetAttributes

typesource
/** Attribute groups the fieldset component provides to the consumer's `toView` callback. */
type FieldsetAttributes = Readonly<{
  description: ReadonlyArray<Attribute<ParentMessage>>
  fieldset: ReadonlyArray<Attribute<ParentMessage>>
  legend: ReadonlyArray<Attribute<ParentMessage>>
}>

ViewConfig

typesource
/** Configuration for rendering a fieldset with `view`. */
type ViewConfig = Readonly<{
  id: string
  isDisabled: boolean
  toView: (attributes: FieldsetAttributes<ParentMessage>) => Html
}>

Stay in the update loop.

New releases, patterns, and the occasional deep dive.


Built with Foldkit.

© 2026 Devin Jameson