API reference: @salmonui/buttons/menu
MenuRadioItemPropsinterface
import type { MenuRadioItemProps } from '@salmonui/buttons/menu';interface MenuRadioItemProps extends ItemCommonProps {
readonly value: string;
readonly id?: string;
readonly onAction?: (event: MenuActionEvent) => void;
}
| Name | Signature | Description |
|---|---|---|
value | readonly value: string; | |
idoptional | readonly id?: string; | Item key reported in |
onActionoptional | readonly onAction?: (event: MenuActionEvent) => void; | Runs after the selection; |
childrenoptionalinherited | children?: ReactNode; | |
iconoptionalinherited | icon?: ReactNode; | Decorative leading icon ( |
disabledoptionalinherited | disabled?: boolean; | Skipped by arrow keys and typeahead; |
textValueoptionalinherited | textValue?: string; | Typeahead text when the children are not plain text. |
classNameoptionalinherited | className?: string; | |
styleoptionalinherited | style?: CSSProperties; | |
refoptionalinherited | ref?: Ref<HTMLElement>; | |
onClickoptionalinherited | onClick?: ((event: MouseEvent<HTMLElement, MouseEvent>) => void); |