Dropdown

Attribute Type Documentation Default Value
Required id * :string

Unique identifier for the dropdown component

label :string

Main text displayed in the dropdown trigger

secondary_text :string

Secondary text displayed to the left of the main label

icon_only :boolean

Whether the dropdown trigger is icon-only

false
hint :string

Hint text for the dropdown

disabled :boolean

Whether the dropdown is disabled

on_open_change :string

Event handler for when the dropdown opens

on_highlight_change :string

Event handler for when the highlighted option changes

on_select :string

Event handler for when an option is selected

on_escape_key_down :string

Event handler for when the escape key is pressed

on_pointer_down_outside :string

Event handler for when the pointer is pressed outside the dropdown

on_focus_outside :string

Function called when the focus is moved outside the component

on_interact_outside :string

Function called when an interaction happens outside the component

icon :slot

Icon to be rendered in the dropdown trigger

inner_block :slot

Content to be rendered inside the dropdown menu