TrademarkTrademarkDocs
Ctrl k
Search docs...
Components

Option

Updated: May 9, 2025
View on GitHub
The Option component represents a selectable item typically used within dropdown menus, select controls, and other interactive lists. Add a description to provide additional context for the option. Add icons or other elements before or after the option text. Options can be selected, highlighted, or marked as dangerous. Options can function as links by providing the href prop.
Prop
Type
Default
label
React.ReactNode—
href
string—
valuerequired
string—
prefix
React.ReactNode—
suffix
React.ReactNode—
description
React.ReactNode—
danger
boolean—
selected
boolean—
disabled
Prevent selection and dim the option.
booleanfalse
highlighted
boolean—
tabIndex
number—
children
React.ReactNode—
onClick
(value: string) => void—
onLinkClick
() => void—
…and every FlexProps propinherited—
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club