Develop ultra fast with Prismane 🎉

Menu API

Learn about the Menu component's props and CSS classes.

Import

import {
  MenuProps,
  MenuItemProps,
  MenuLabelProps,
  MenuIconProps,
} from "@prismane/core";

Props

Menu

Menu extends Animation and Card components' props.

NameTypeDescriptionDefault
openbooleanA function that will be executed before redirecting the user.false

Menu.Item

Menu.Item extends Flex component's props.

NameTypeDescriptionDefault
colorPrismaneColors The colors of the menu item.base

Menu.Label

Menu.Label extends Flex component's props.

NameTypeDescriptionDefault
colorPrismaneColors The colors of the menu label.base

Menu.Icon

Menu.Icon extends Icon component's props.

CSS

Menu

Menu extends Animation and Card components' CSS classes.

RuleGlobal ClassDescription
root.PrismaneMenu-rootThe container of the menu component.

Menu.Item extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneMenuItem-rootThe container of the menu item component.
root.PrismaneMenuItem-root-{color}The container of the menu item component based on it's color.

Menu.Label extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneMenuLabel-rootThe container of the menu label component.
root.PrismaneMenuLabel-root-{color}The container of the menu label component based on it's color.

Menu.Icon extends Icon component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneMenuIcon-rootThe container of the menu icon component.