API reference: @salmonui/buttons/menu
MenuCheckboxItemPropsinterface
import type { MenuCheckboxItemProps } from '@salmonui/buttons/menu';interface MenuCheckboxItemProps extends ItemCommonProps {
readonly id?: string;
readonly checked?: boolean;
readonly defaultChecked?: boolean;
readonly onCheckedChange?: (checked: boolean, event: MenuChangeEvent) => void;
readonly onAction?: (event: MenuActionEvent) => void;
}
| Name | Signature | Description |
|---|---|---|
idoptional | readonly id?: string; | Item key reported in |
checkedoptional | readonly checked?: boolean; | |
defaultCheckedoptional | readonly defaultChecked?: boolean; | |
onCheckedChangeoptional | readonly onCheckedChange?: (checked: boolean, event: MenuChangeEvent) => void; | |
onActionoptional | readonly onAction?: (event: MenuActionEvent) => void; | Runs after the toggle; |
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); |