Menu
Useful for displaying a list of contextual actions on left click.
Props
Prop | Type | Description |
---|---|---|
children | ReactNode | The content to render |
appearance | default | minimal | negative | positive | The theming to apply |
id | String | The id of the menu |
icon | String | The icon to apply |
text | String | A text of the meun |
isVisible | Boolean | Whether it is visible or not |
hasBorder | Boolean | Whether it should have border or not |
onClick | Function | A function to be called when on click |
MenuGroup
Props
Prop | Type | Description |
---|---|---|
children | ReactNode | The content to render |
appearance | default | minimal | negative | positive | The theming to apply |
id | String | The id of the menu group |
isVisible | Boolean | Whether it is visible or not |
MenuItem
Props
Prop | Type | Description |
---|---|---|
children | ReactNode | The content to render |
appearance | default | minimal | negative | positive | The theming to apply |
MenuItemLink
Props
Prop | Type | Description |
---|---|---|
children | ReactNode | The content to render |
href | String | The href of the menu item |
MenuItemButton
Props
Prop | Type | Description |
---|---|---|
children | ReactNode | The content to render |
appearance | default | minimal | negative | positive | The theming to apply |
onClick | Function | A function to be called when on click |
Examples
todo