Megamenu

The Megamenu component provides a reusable pattern for megamenu in the interface.

No component examples available.

API

Parameter Default Description
[] List of arrays containing at least 'label' and 'href' option 'icon' name as string.
default Select the type of menu parents.
false Select the style of menu parents (only applies when type equals button).
primary Select the color of the parent style. (only applies when type equals button).
default Select the type of menu children.
false Select the style of menu children. (only applies when type equals button).
primary Select the color of the child style. (only applies when type equals button).
false If true, the mega menu will be visible on mobile as well.

CSS API

Variable Default Type Values Description
var(--base) range - Main unit that drives radius and spacing scales.
var(--color--primary) color - Primary
var(--color--secondary) color - Secondary
var(--color--surface) color - Surface
var(--font-family-base) font - Body Font
var(--font-family-heading) font - Falls back to body font if not set.
var(--font-size-300) range - Two steps above base in the type scale. Equivalent to h5.
var(--color--secondary-contrast) color - Secondary Contrast
var(--color--primary-contrast) color - Primary Contrast