Menus
MenuRadioItem
One choice in a MenuRadioGroup, marked when it is the group's value.
import { MenuRadioItem } from "@/components/ouro/menu/menu";Example
<MenuRadioItem value="name">Name</MenuRadioItem>Use instead when
- Use
MenuIteminstead for an action.
Props
Type: MenuRadioItemProps.
children(required)- Type:
ReactNode - The choice's text.
disabled- Type:
boolean - Shown, but cannot be chosen.
shortcut- Type:
MenuShortcut - The keys of its shortcut, shown at its end.
value(required)- Type:
string - The value the group reports when this item is chosen.
Types
MenuShortcut
Keys for a shortcut, as Kbd takes them: ["mod", "e"] shows ⌘E on Apple platforms and Ctrl+E elsewhere.
type MenuShortcut = readonly string[] | (string & { 'Use an array: shortcut={["mod", "k"]}': never });