Dropdown

Attribute Type Documentation Default Value
class :string

Extends dropdown class

color :atom

The dropdown color.

:primary
content_class :string

Extends dropdown content class

href :string

The link to redirect on click.

icon :string

The fontawesome class of the icon

icon_class :string

Extends dropdown icon class

id :string
loading :boolean

The button optional spinner

false
outline :boolean

Default dropdowns are filled with colors, outline buttons aren’t

false
rest :global
single :boolean

make it displayed as a single, non splitted, button

false
single_icon_class :string

Extends dropdown single icon class

size :atom

The button size.

:default
Required text * :string

The text to display into the button.

text_class :string

Extends dropdown text class

toggle_button_class :string

Extends dropdown toggle button class

wrapper_class :string

Dropdown wrapping container class

Required inner_block * :slot

Put here a list of <.dropdown_item/>

<.dropdown_item text="First item"/>
<.dropdown_item text="Second item"/>