API Reference
Menu component
<Menu label="Open"> <MenuItem>Item 1</MenuItem> </Menu>
Parameters
props
- Type:
@vtex/shoreline-components.MenuProps & @types/react.React.RefAttributes<typescript.HTMLDivElement>
Props
asChild
(optional)
Children composition
-
Type:
boolean
-
Default:
false
iconOnly
(optional)
Hide the textual label
-
Type:
boolean
-
Default:
false
label
Trigger label
- Type:
@types/react.React.ReactNode
size
(optional)
Increase or decrease padding.
-
Type:
normal | large
-
Default:
'normal'
type
(optional)
Type of dropdown
-
Type:
menu | actions
-
Default:
'menu'
variant
(optional)
Change between color combinations.
-
Type:
primary | secondary | tertiary | critical | criticalTertiary
-
Default:
'secondary'