Documentation
React Menu component

Menu

The Menu component is a versatile dropdown system that allows for contextual actions or navigation. It can be triggered by various events, such as clicks, and includes a range of customizable components like Menu.Item, Menu.Link, Menu.Section, and more.

Usage

First of all, you need to import the Menu component from the kitchn package.

import { Menu } from "kitchn"

Default

Disabled Items

Link Items

Unstyled

Scope Switcher

Props

Menu.Container

NameTypeDefaultRequiredDescription
placementstring"bottomStart"NoDetermines the position of the menu relative to the button.
triggerstring"click"NoSpecifies the event that triggers the menu.
hideArrowbooleantrueNoIf true, the menu arrow is hidden.
portalCsscssundefinedNoAdditional styles for the menu portal.

Menu.Button

NameTypeDefaultRequiredDescription
unstyledbooleanfalseNoIf true, the button renders without styles.

Menu.Item

NameTypeDefaultRequiredDescription
disabledbooleanfalseNoIf true, the menu item is disabled and cannot be clicked.
activebooleanfalseNoIf true, the menu item is highlighted as active.

Menu.Section

NameTypeDefaultRequiredDescription
titlestringundefinedYesThe title for the section, displayed above the section's items.