Displays a list of options for the user to pick from—triggered by a button.
sizecolorghosthighContrastplaceholderstringAlso supports MarginProps: `m`, `mb`, `ml`, `mr`, `mt`, `mx`, `my`
containerElement | DocumentFragment | nullUse the size prop to control the size.
Use the ghost trigger variant to render the trigger without a visually containing element. Ghost triggers behave differently in layout as they use a negative margin to optically align themselves against their siblings while maintaining their padded active and hover states.
When using server-side rendering, you might notice a layout shift after hydration. This is because Trigger executes client-side code to display the selected item’s text. To avoid that layout shift, you can render it manually by mapping values.
You can customise how Trigger renders the value by controlling its children manually. For example, you can render an icon next to the selected item’s text.
8 variants found
/branding/edit
/branding/edit
/:environmentId/notifications
2 variants found
/p/:portalSessionId/directory-sync/role-assignment
/p/:portalSessionId/sso/:connectionId/completed/connection-sessions-table
<Flex align="center" justify="between">
<Heading as="h3" size="3">
Sessions
</Heading>
<Select.Root
size="2"
value={defaultStatus || 'all'}
onValueChange={(value) => {
navigateWithSearchQuery(
'status',
value === 'all' ? undefined : value,
);
}}
>
<Select.Trigger ghost />
<Select.Content>
<Select.Group>
<Select.Item key="status-all" value="all">
All
</Select.Item>
{availableFilters.map((filter) => (
<Select.Item key={`status-${filter.value}`} value={filter.value}>
{filter.label}
</Select.Item>
))}
</Select.Group>
</Select.Content>
</Select.Root>
</Flex>Also supports MarginProps: m, mb, ml, mr, mt, mx, my
Used 261 times across 2 packages
ghost
position
size
side
color
align
39 files
/branding/edit
/p/:portalSessionId/sso/:connectionId/completed/components/connection-attribute-mapping
/:environmentId/notifications
Show 29 more files