Skip to main content

Root Styles

The Root Style feature provides the flexibility to apply custom styling to the menu item. With the rootStyles prop, you can pass a set of CSS properties to customize the appearance of the menu item according to your design preferences. The rootStyles prop accepts a CSSObject from the Emotion library.

Props

type RootStylesType = {
rootStyles?: CSSObject
}

Example

/horizontal-menu/menu-item/root-styles

Source Code