Menu

A dropdown on a cut plate: radius 10, 34px rows, icons that wake on highlight.

View source
import { Menu } from "@logicplanes/kaeso-ui";

Props

  • children
    ReactNode

    The trigger and the menu's content.

  • defaultOpen
    boolean

    Whether it starts open, when the component keeps its own state.

  • modal
    boolean

    Blocks the rest of the page while the menu is open.

  • onOpenChange
    ((open: boolean, reason?: string) => void)

    Called when it opens or closes, with why: item-press when a chosen item closed it, escape-key, outside-press or trigger-press otherwise.

  • open
    boolean

    Whether it is open, when you control it.