Hamburger Menu
Inklineās hamburger menu is used to control opening and closing elements using various animation options.
Basic Example
Hereās an example of a basic use case for the <i-hamburger-menu> component. This component is usually used together with the Navbar Component and Sidebar Component to control their collapsed state.
Color Variants
You can set the style of a <i-hamburger-menu> using the color property, which can have a value of light or dark. By default, hamburger menus have the light color variant.
Animation
The <i-hamburger-menu> menu component supports various closed state animations. You can choose a closed state icon using the animation property.
Configuration
Props
Use props to modify the componentās design and behavior.
- Property
animationType'close' | arrow-up | arrow-down | arrow-left | arrow-right | 'plus' | 'minus'Default'close'Description The animation of the hamburger menu - Property
colorType'light' | 'dark'Default'light'Description The color variant of the hamburger menu - Property
modelValueTypeBooleanDefaultfalseDescription Used to set the hamburger menu as opened or closed
Events
Use events to react to something happening inside the component.
- Property
update:modelValueDescription Event emitted for setting the modelValue
CSS Variables
Read more about configuring Inklineās Design System variables to update the look and feel of the component.
- Property
----backgroundValuecolor('dark')Description The background of the hamburger-menu component - Property
----opacityValue0.7Description The opacity of the hamburger-menu component - Property
----opacity--hoverValue1Description The opacity of the hamburger-menu component - Property
----padding-topValuecalc(var(--padding-top) / 2)Description The padding top of the card component - Property
----padding-rightValuecalc(var(--padding-right) / 2)Description The padding right of the card component - Property
----padding-bottomValuecalc(var(--padding-bottom) / 2)Description The padding bottom of the card component - Property
----padding-leftValuecalc(var(--padding-left) / 2)Description The padding left of the card component - Property
----paddingValuevar(----padding-top) var(----padding-right) var(----padding-bottom) var(----padding-left)Description The padding of the card component - Property
----bar--border-radiusValue2pxDescription The border radius of the hamburger-menu component bars - Property
----bar--spacingValue5pxDescription The spacing between the hamburger-menu component bars - Property
----bar--widthValue30pxDescription The width of the hamburger-menu component bars - Property
----bar--heightValue3pxDescription The height of the hamburger-menu component bars