/// export interface UseMenuButtonParameters { /** * If `true`, the component is disabled. * @default false */ disabled?: boolean; /** * If `true`, allows a disabled button to receive focus. * @default false */ focusableWhenDisabled?: boolean; /** * The ref to the root element. */ rootRef?: React.Ref; } type UseMenuButtonRootSlotProps = ExternalProps & UseMenuButtonRootSlotOwnProps; interface UseMenuButtonRootSlotOwnProps { 'aria-haspopup': 'menu'; 'aria-expanded': boolean; 'aria-controls': string; /** * Callback fired when the button is clicked. */ onClick: React.MouseEventHandler; /** * The ref to the button element. */ ref: React.RefCallback | null; } export interface UseMenuButtonReturnValue { /** * If `true`, the component is active (pressed). */ active: boolean; /** * Resolver for the root slot's props. * @param externalProps props for the root slot * @returns props that should be spread on the root slot */ getRootProps: = {}>(externalProps?: ExternalProps) => UseMenuButtonRootSlotProps; open: boolean; /** * The ref to the root element. */ rootRef: React.RefCallback | null; } export {};