Select
Understand the design system and contribute to it
Component preview
The live preview for UI components is handled by components/atoms/codedocs/ComponentPreview.tsx. Use it directly inside MDX whenever you want a playground-style embed. Provide componentProps to set default values and propOptions to surface toggle-able props next to the preview.
Current selection: pro
Prop reference
Auto-generated from the component source
Select
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof SelectPrimitive.Root>
SelectContent
classNamechildrenposition= "item-aligned"align= "center"
React.ComponentProps<typeof SelectPrimitive.Content>
SelectGroup
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof SelectPrimitive.Group>
SelectItem
classNamechildren
React.ComponentProps<typeof SelectPrimitive.Item>
SelectLabel
className
React.ComponentProps<typeof SelectPrimitive.Label>
SelectScrollDownButton
className
React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>
SelectScrollUpButton
className
React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>
SelectSeparator
className
React.ComponentProps<typeof SelectPrimitive.Separator>
SelectTrigger
classNamesize= "default"children
React.ComponentProps<typeof SelectPrimitive.Trigger> & { size?: "sm" | "default"; }
SelectValue
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof SelectPrimitive.Value>