Select
Animated select menu with fluid hover, bordered/borderless variants, optional leading icons, and spring-animated popover.
Installation
Install Select from the Fluid Effect UI registry.
Basic
Variants
With Icons
Groups
Scrollable List
Error State
Please select a role to continue.
Disabled
API Reference
Types come from the public API. A dash indicates no default is documented here.
Select props
Public source| Prop | Type | Default | Description |
|---|---|---|---|
key | string | undefined | '' | The child's identity among its parent's children of one component. The empty string by default. |
onEmit | Show type((events: SelectEvents) => NoInfer<Msg> | undefined) | { readonly RequestedClose: (event: { readonly _tag: "RequestedClose"; readonly reason: "none" | "trigger-press" | "list-navigation" | "item-press" | "outside-press" | "escape-key" | "focus-out" | "close-press" | "cancel-open" | "window-resize"; }) => NoInfer<Msg> | undefined; readonly RequestedOpen: (event: { readonly _tag: "RequestedOpen"; readonly reason: "none" | "trigger-press" | "list-navigation" | "item-press" | "outside-press" | "escape-key" | "focus-out" | "close-press" | "cancel-open" | "window-resize"; }) => NoInfer<Msg> | undefined; readonly Picked: (event: { readonly _tag: "Picked"; readonly value: string | readonly string[] | null; readonly reason: "none" | "trigger-press" | "list-navigation" | "item-press" | "outside-press" | "escape-key" | "focus-out" | "close-press" | "cancel-open" | "window-resize"; }) => NoInfer<Msg> | undefined; readonly Settled: (event: { readonly _tag: "Settled"; readonly open: boolean; }) => 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.open | boolean | Required | |
props.items | Show typereadonly { readonly label: string; readonly value: string; readonly disabled?: boolean | undefined; }[] | Required | |
props.form | string | undefined | — | |
props.id | string | undefined | options.key | |
props.disabled | boolean | undefined | — | |
props.value | string | readonly string[] | null | undefined | — | |
props.modal | boolean | undefined | — | |
props.required | boolean | undefined | — | |
props.anchor | Show typestring | { readonly x: number; readonly y: number; readonly width: number; readonly height: number; } | undefined | — | |
props.side | "bottom" | "left" | "right" | "top" | "inline-start" | "inline-end" | undefined | — | |
props.name | string | undefined | — | |
props.readOnly | boolean | undefined | — | |
props.placeholder | string | undefined | — | |
props.dismissLabel | string | undefined | — | |
props.align | "end" | "start" | "center" | undefined | — | |
props.sideOffset | number | undefined | — | |
props.alignOffset | number | undefined | — | |
props.collisionAvoidance | Show type{ readonly side?: "shift" | "none" | "flip" | undefined; readonly align?: "shift" | "none" | "flip" | undefined; readonly fallbackAxisSide?: "end" | "start" | "none" | undefined; } | undefined | — | |
props.collisionBoundary | Show type"clipping-ancestors" | { readonly id: string; } | { readonly x: number; readonly y: number; readonly width: number; readonly height: number; } | undefined | — | |
props.collisionPadding | Show typenumber | { readonly bottom?: number | undefined; readonly left?: number | undefined; readonly right?: number | undefined; readonly top?: number | undefined; } | undefined | — | |
props.sticky | boolean | undefined | — | |
props.arrowPadding | number | undefined | — | |
props.positionMethod | "fixed" | "absolute" | undefined | — | |
props.disableAnchorTracking | boolean | undefined | — | |
props.topLayer | boolean | undefined | — | |
props.multiple | boolean | undefined | — | |
props.autoComplete | string | undefined | — | |
props.highlightItemOnHover | boolean | undefined | — | |
props.alignItemWithTrigger | boolean | undefined | — | |
props.finalFocus | boolean | undefined | — | |
props.holdExit | boolean | undefined | — | |
size | SizeVariant | 'default' | |
shape | ShapeVariant | 'rounded' | |
surface | number | 1 | |
reducedMotion | "user" | "always" | "never" | 'user' | |
className | string | — | |
contentClassName | string | — | |
groups | readonly { readonly label: string; readonly values: ReadonlyArray<string>; }[] | — | |
ariaLabel | string | Required | |
variant | "default" | "borderless" | — | |
invalid | boolean | — | |
error | string | — | |
triggerClassName | string | — | |
triggerIcon | View.Content<Msg, R> | — | Render the trigger as a Fluid icon button. The selected value stays available in the listbox. |
triggerTooltip | string | Varies
| |
triggerDescribedBy | string | — | IDs that describe the trigger in addition to its own error feedback. |
leading | View.Content<Msg, R> | undefined | — | |
renderIcon | (item: SelectProps["items"][number]) => View.Content<Msg, R> | undefined | — |