Skip to content

RadioGroup

Radio button group with fluid hover and animated selection.

Installation

Install RadioGroup from the Fluid Effect UI registry.

Basic

API Reference

Types come from the public API. A dash indicates no default is documented here.

RadioGroup props

Public source
PropTypeDefaultDescription
keyKeepAliveKey<K, Ends> | undefined''The child's identity among its parent's children of one component, or a kept child's among its author's. The empty string by default.
onEmit
Show type
((events: { readonly _tag: "ChangeRequested"; readonly value: string | null; }) => NoInfer<Msg> | undefined) | { readonly ChangeRequested: (event: { readonly _tag: "ChangeRequested"; readonly value: string | null; }) => NoInfer<Msg> | undefined; } | undefined
—Handle the child's events with a callback, or supply one handler per tag for tagged events. Return a parent message to dispatch it, or `undefined` to ignore the event.
props.labelstringRequired
props.idstringRequired
props.valuestring | nullRequired
props.itemsreadonly { readonly label: string; readonly value: string; readonly disabled?: boolean; }[]Required
props.namestringRequired
props.formstring—
props.disabledboolean—
props.size"default" | "compact"'default'
props.reducedMotion"user" | "always" | "never"'user'
props.requiredboolean—
props.invalidboolean—
props.classNamestring—
props.shape"rounded" | "pill" | "sharp"'rounded'
props.readOnlyboolean—
props.describedBystring—