View Source Shino.UI.Menu (shino v0.1.1-alpha.0)
Provides menu related components.
Wanna
DropdownMenu
?Popover
+Menu
=DropdownMenu
Examples
<Menu.root>
<Menu.label>My Account</Menu.label>
<Menu.separator />
<Menu.group>
<Menu.item>
<Menu.plain>
Profile
<Menu.shortcut>⌘P</Menu.shortcut>
</Menu.plain>
</Menu.item>
<Menu.item>
<Menu.plain>
Billing
<Menu.shortcut>⌘B</Menu.shortcut>
</Menu.plain>
</Menu.item>
<Menu.item>
<Menu.plain>
Settings
<Menu.shortcut>⌘S</Menu.shortcut>
</Menu.plain>
</Menu.item>
</Menu.group>
<Menu.separator />
<Menu.item>
<Menu.anchor href="#">
Logout
</Menu.anchor>
</Menu.item>
</Menu.root>
References
Summary
Functions
Renders a menu anchor.
Renders a menu group.
Renders a menu item.
Renders a menu label.
Renders a menu plain.
The root contains all the parts of a menu.
Renders a menu separator.
Renders a menu shortcut.
Functions
Renders a menu anchor.
Attributes
class
(:string
) - Defaults tonil
.- Global attributes are accepted. Supports all globals plus:
["href", "navigate", "patch", "method"]
.
Slots
inner_block
(required)
Renders a menu group.
Attributes
class
(:string
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Renders a menu item.
Attributes
class
(:string
) - Defaults tonil
.disabled
(:boolean
) - Defaults tofalse
.- Global attributes are accepted.
Slots
inner_block
(required)
Renders a menu label.
Attributes
class
(:string
) - Defaults tonil
.inset
(:boolean
) - Defaults tofalse
.- Global attributes are accepted.
Slots
inner_block
(required)
Renders a menu plain.
Attributes
class
(:string
) - Defaults tonil
.- Global attributes are accepted. Supports all globals plus:
["href", "navigate", "patch"]
.
Slots
inner_block
(required)
The root contains all the parts of a menu.
Attributes
class
(:string
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Renders a menu separator.
Attributes
class
(:string
) - Defaults tonil
.
Slots
inner_block
Renders a menu shortcut.
Attributes
class
(:string
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)