Skip to content
Components / Controls

Select

A closed list of options.

@fabrials/ui
Loading state

Installation

  1. Import the control from @fabrials/ui, after setting the app up.

    TypeScript
    import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from "@fabrials/ui";
  2. Or install it under shadcn's name, so code that imports @/components/ui/select gets this control. See shims.

    npx shadcn@latest add @fabrials/select

API reference

Prop / exportTypeDescription
defaultValuestringInitial selected value.
valuestringSelected item value on SelectItem.

Behavior

NativeSelect remains for pages that need a native control inside a plain form. This select is the styled list.

Accessibility

Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.