Hygge-UI

Select

Used to pick a value from predefined options.

Source

Examples

Variants

Use the variant prop to change the style of the select component.

Size

Use the size prop to change the size of the select component.

Option Group

Use the SelectItemGroup component to group select options.

Disabled

Use the disabled prop to disable select component.

Invalid

Here's an example of how to compose the Select component with theField component to display an error state.

This is an error

Multiple

Use the multiple prop to allow multiple selections.

Positioning

Use the positioning prop to control the underlying floating-ui options of the select component.

Item Description

Here's an example of how to render a description for each item.

Avatar Select

Here's an example of how to compose the Select and the Avatar.