Menu
v0.0.10
v0.0.10StableComponentStatelessApache-2.0
Installation
mix mishka.ui.gen.component menu
Source
View Source
Attributes
| Name | Type | Default | Values | Required | Description |
|---|---|---|---|---|---|
id
|
string
| — | — | No | A unique identifier is used to manage state and interaction |
class
|
any
| — | — | No | Custom CSS class for additional styling |
link_class
|
string
| — | — | No | Custom CSS class for additional styling for link |
item_class
|
string
| — | — | No | Custom CSS class for additional styling for li |
accordion_class
|
string
| — | — | No | Custom CSS class for additional styling for accordion |
menu_items
|
list
|
[]
| — | No | Determines menu items as a list of maps |
space
|
string
|
small
|
extra_smallsmallmediumlargeextra_largenone
| No | Space between items |
padding
|
string
|
small
|
extra_smallsmallmediumlargeextra_largenone
| No | Determines padding for items |
rest
|
global
| — | — | No | Global attributes can define defaults which are merged with attributes provided by the caller |
Slots
| Name | Required | Description |
|---|---|---|
inner_block
| No | Global attributes can define defaults which are merged with attributes provided by the caller |
Options
Each option takes one or more of its values, separated by commas.
| Option | Values |
|---|---|
--space
|
extra_smallsmallmediumlargeextra_largenone
|
--padding
|
extra_smallsmallmediumlargeextra_largenone
|
--module
| A module name of your own |
What it generates
Functions
menu
Helpers
None
Generated with it
collapsebuttonicon
Command
mix mishka.ui.gen.component menu