Menu
A dropdown on a cut plate: radius 10, 34px rows, icons that wake on highlight.
<Menu>
<Menu.Trigger>
<Button size="sm" icon={icons.more} aria-label="Key actions" variant="secondary" />
</Menu.Trigger>
<Menu.Content align="end">
<Menu.Item icon={icons.edit}>Rename</Menu.Item>
<Menu.Item icon={icons.copy}>Copy key id</Menu.Item>
<Menu.Item icon={icons.limit}>Edit limits</Menu.Item>
<Menu.Separator />
<Menu.Item icon={icons.hide}>Disable</Menu.Item>
<Menu.Item variant="danger">Archive key</Menu.Item>
</Menu.Content>
</Menu>import { Menu } from "@logicplanes/kaeso-ui";Props
childrenReactNodeThe trigger and the menu's content.
defaultOpenbooleanWhether it starts open, when the component keeps its own state.
modalbooleanBlocks 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-presswhen a chosen item closed it,escape-key,outside-pressortrigger-pressotherwise.openbooleanWhether it is open, when you control it.