1 |
|
2 | export interface UseMenuButtonParameters {
|
3 | |
4 |
|
5 |
|
6 |
|
7 | disabled?: boolean;
|
8 | |
9 |
|
10 |
|
11 |
|
12 | focusableWhenDisabled?: boolean;
|
13 | |
14 |
|
15 |
|
16 | rootRef?: React.Ref<HTMLElement>;
|
17 | }
|
18 | type UseMenuButtonRootSlotProps<ExternalProps = {}> = ExternalProps & UseMenuButtonRootSlotOwnProps;
|
19 | interface UseMenuButtonRootSlotOwnProps {
|
20 | 'aria-haspopup': 'menu';
|
21 | 'aria-expanded': boolean;
|
22 | 'aria-controls': string;
|
23 | |
24 |
|
25 |
|
26 | onClick: React.MouseEventHandler;
|
27 | |
28 |
|
29 |
|
30 | ref: React.RefCallback<Element> | null;
|
31 | }
|
32 | export interface UseMenuButtonReturnValue {
|
33 | |
34 |
|
35 |
|
36 | active: boolean;
|
37 | |
38 |
|
39 |
|
40 |
|
41 |
|
42 | getRootProps: <ExternalProps extends Record<string, unknown> = {}>(externalProps?: ExternalProps) => UseMenuButtonRootSlotProps<ExternalProps>;
|
43 | open: boolean;
|
44 | |
45 |
|
46 |
|
47 | rootRef: React.RefCallback<Element> | null;
|
48 | }
|
49 | export {};
|