@gridui/dropdown-menu 1.2.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,179 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ContextMenu
3
+
4
+ Shows contextual actions at a requested position. Use it for item-specific actions invoked by a context-menu gesture or an explicit trigger.
5
+
6
+ Import from ``@gridui/dropdown-menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ContextMenu } from "@gridui/dropdown-menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/dropdown-menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/stories/context-menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### onFocus
23
+
24
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
25
+
26
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
27
+
28
+ ### onBlur
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onChange
35
+
36
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onSubmit
41
+
42
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onClick
47
+
48
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### asChild
53
+
54
+ ``boolean | undefined`` · Optional
55
+
56
+ ### onEscapeKeyDown
57
+
58
+ ``(event: KeyboardEvent): void`` · Optional
59
+
60
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
61
+
62
+ ### onPointerDownOutside
63
+
64
+ ``(event: CustomEvent<{ originalEvent: PointerEvent; }>): void`` · Optional
65
+
66
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
67
+
68
+ ### onFocusOutside
69
+
70
+ ``(event: CustomEvent<{ originalEvent: FocusEvent; }>): void`` · Optional
71
+
72
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
73
+
74
+ ### onInteractOutside
75
+
76
+ ``(event: CustomEvent<{ originalEvent: PointerEvent; }> | CustomEvent<{ originalEvent: FocusEvent; }>): void`` · Optional
77
+
78
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
79
+
80
+ ### onCloseAutoFocus
81
+
82
+ ``(event: Event): void`` · Optional
83
+
84
+ Event handler called when auto-focusing on close.
85
+ Can be prevented.
86
+
87
+ ### forceMount
88
+
89
+ ``true | undefined`` · Optional
90
+
91
+ Used to force mounting when more control is needed. Useful when
92
+ controlling animation with React animation libraries.
93
+
94
+ ### loop
95
+
96
+ ``boolean | undefined`` · Optional
97
+
98
+ Whether keyboard navigation should loop around
99
+
100
+ ### side
101
+
102
+ ``"left" | "right" | "top" | "bottom" | undefined`` · Optional
103
+
104
+ ### sideOffset
105
+
106
+ ``number | undefined`` · Optional
107
+
108
+ ### align
109
+
110
+ ``"center" | "start" | "end" | undefined`` · Optional
111
+
112
+ ### alignOffset
113
+
114
+ ``number | undefined`` · Optional
115
+
116
+ ### arrowPadding
117
+
118
+ ``number | undefined`` · Optional
119
+
120
+ ### avoidCollisions
121
+
122
+ ``boolean | undefined`` · Optional
123
+
124
+ ### collisionBoundary
125
+
126
+ ``(Element | null) | (Element | null)[] | undefined`` · Optional
127
+
128
+ ### collisionPadding
129
+
130
+ ``number | Partial<Record<"left" | "right" | "top" | "bottom", number>> | undefined`` · Optional
131
+
132
+ ### sticky
133
+
134
+ ``("partial" | "always") | undefined`` · Optional
135
+
136
+ ### hideWhenDetached
137
+
138
+ ``boolean | undefined`` · Optional
139
+
140
+ ### updatePositionStrategy
141
+
142
+ ``("always" | "optimized") | undefined`` · Optional
143
+
144
+ ### morph
145
+
146
+ ``boolean | undefined`` · Optional
147
+
148
+ ### respectReducedMotion
149
+
150
+ ``boolean | undefined`` · Optional
151
+
152
+ ### dir
153
+
154
+ ``("ltr" | "rtl") | undefined`` · Optional
155
+
156
+ ### x
157
+
158
+ ``number`` · Required
159
+
160
+ ### y
161
+
162
+ ``number`` · Required
163
+
164
+ ### label
165
+
166
+ ``string`` · Required
167
+
168
+ ### children
169
+
170
+ ``ReactNode`` · Required
171
+
172
+ Content rendered inside the component.
173
+
174
+ ### onClose
175
+
176
+ ``(): void`` · Required
177
+
178
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
179
+
@@ -0,0 +1,165 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # DropdownMenuContent
3
+
4
+ Compose DropdownMenuContent with DropdownMenu inside the same @gridui/dropdown-menu component family.
5
+
6
+ Import from ``@gridui/dropdown-menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { DropdownMenuContent } from "@gridui/dropdown-menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/dropdown-menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/stories/dropdown-menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### asChild
59
+
60
+ ``boolean | undefined`` · Optional
61
+
62
+ ### onEscapeKeyDown
63
+
64
+ ``(event: KeyboardEvent): void`` · Optional
65
+
66
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
67
+
68
+ ### onPointerDownOutside
69
+
70
+ ``(event: CustomEvent<{ originalEvent: PointerEvent; }>): void`` · Optional
71
+
72
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
73
+
74
+ ### onFocusOutside
75
+
76
+ ``(event: CustomEvent<{ originalEvent: FocusEvent; }>): void`` · Optional
77
+
78
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
79
+
80
+ ### onInteractOutside
81
+
82
+ ``(event: CustomEvent<{ originalEvent: PointerEvent; }> | CustomEvent<{ originalEvent: FocusEvent; }>): void`` · Optional
83
+
84
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
85
+
86
+ ### onCloseAutoFocus
87
+
88
+ ``(event: Event): void`` · Optional
89
+
90
+ Event handler called when auto-focusing on close.
91
+ Can be prevented.
92
+
93
+ ### forceMount
94
+
95
+ ``true | undefined`` · Optional
96
+
97
+ Used to force mounting when more control is needed. Useful when
98
+ controlling animation with React animation libraries.
99
+
100
+ ### loop
101
+
102
+ ``boolean | undefined`` · Optional
103
+
104
+ Whether keyboard navigation should loop around
105
+
106
+ ### side
107
+
108
+ ``"left" | "right" | "top" | "bottom" | undefined`` · Optional
109
+
110
+ ### sideOffset
111
+
112
+ ``number | undefined`` · Optional
113
+
114
+ Default: ``8``
115
+
116
+ ### align
117
+
118
+ ``"center" | "start" | "end" | undefined`` · Optional
119
+
120
+ Default: ``"end"``
121
+
122
+ ### alignOffset
123
+
124
+ ``number | undefined`` · Optional
125
+
126
+ ### arrowPadding
127
+
128
+ ``number | undefined`` · Optional
129
+
130
+ ### avoidCollisions
131
+
132
+ ``boolean | undefined`` · Optional
133
+
134
+ ### collisionBoundary
135
+
136
+ ``(Element | null) | (Element | null)[] | undefined`` · Optional
137
+
138
+ ### collisionPadding
139
+
140
+ ``number | Partial<Record<"left" | "right" | "top" | "bottom", number>> | undefined`` · Optional
141
+
142
+ ### sticky
143
+
144
+ ``("partial" | "always") | undefined`` · Optional
145
+
146
+ ### hideWhenDetached
147
+
148
+ ``boolean | undefined`` · Optional
149
+
150
+ ### updatePositionStrategy
151
+
152
+ ``("always" | "optimized") | undefined`` · Optional
153
+
154
+ ### morph
155
+
156
+ ``boolean | undefined`` · Optional
157
+
158
+ Default: ``false``
159
+
160
+ ### respectReducedMotion
161
+
162
+ ``boolean | undefined`` · Optional
163
+
164
+ Default: ``true``
165
+
@@ -0,0 +1,77 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # DropdownMenuItem
3
+
4
+ Compose DropdownMenuItem with ContextMenu inside the same @gridui/dropdown-menu component family.
5
+
6
+ Import from ``@gridui/dropdown-menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { DropdownMenuItem } from "@gridui/dropdown-menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/dropdown-menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/stories/context-menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### onSelect
59
+
60
+ ``(event: Event): void`` · Optional
61
+
62
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
63
+
64
+ ### asChild
65
+
66
+ ``boolean | undefined`` · Optional
67
+
68
+ ### disabled
69
+
70
+ ``boolean | undefined`` · Optional
71
+
72
+ Prevents interaction when enabled.
73
+
74
+ ### textValue
75
+
76
+ ``string | undefined`` · Optional
77
+
@@ -0,0 +1,61 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # DropdownMenuLabel
3
+
4
+ Compose DropdownMenuLabel with DropdownMenu inside the same @gridui/dropdown-menu component family.
5
+
6
+ Import from ``@gridui/dropdown-menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { DropdownMenuLabel } from "@gridui/dropdown-menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/dropdown-menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/stories/dropdown-menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### asChild
59
+
60
+ ``boolean | undefined`` · Optional
61
+
@@ -0,0 +1,73 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # DropdownMenuRadioGroup
3
+
4
+ Compose DropdownMenuRadioGroup with DropdownMenu inside the same @gridui/dropdown-menu component family.
5
+
6
+ Import from ``@gridui/dropdown-menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { DropdownMenuRadioGroup } from "@gridui/dropdown-menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/dropdown-menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/stories/dropdown-menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### asChild
59
+
60
+ ``boolean | undefined`` · Optional
61
+
62
+ ### value
63
+
64
+ ``string | undefined`` · Optional
65
+
66
+ Controlled value. Pair with the corresponding change callback.
67
+
68
+ ### onValueChange
69
+
70
+ ``(value: string): void`` · Optional
71
+
72
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
73
+
@@ -0,0 +1,83 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # DropdownMenuRadioItem
3
+
4
+ Compose DropdownMenuRadioItem with DropdownMenu inside the same @gridui/dropdown-menu component family.
5
+
6
+ Import from ``@gridui/dropdown-menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { DropdownMenuRadioItem } from "@gridui/dropdown-menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/dropdown-menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/stories/dropdown-menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### onSelect
59
+
60
+ ``(event: Event): void`` · Optional
61
+
62
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
63
+
64
+ ### asChild
65
+
66
+ ``boolean | undefined`` · Optional
67
+
68
+ ### disabled
69
+
70
+ ``boolean | undefined`` · Optional
71
+
72
+ Prevents interaction when enabled.
73
+
74
+ ### value
75
+
76
+ ``string`` · Required
77
+
78
+ Controlled value. Pair with the corresponding change callback.
79
+
80
+ ### textValue
81
+
82
+ ``string | undefined`` · Optional
83
+
@@ -0,0 +1,61 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # DropdownMenuTrigger
3
+
4
+ Compose DropdownMenuTrigger with DropdownMenu inside the same @gridui/dropdown-menu component family.
5
+
6
+ Import from ``@gridui/dropdown-menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { DropdownMenuTrigger } from "@gridui/dropdown-menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/dropdown-menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/dropdown-menu/stories/dropdown-menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLButtonElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLButtonElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLButtonElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLButtonElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLButtonElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### asChild
59
+
60
+ ``boolean | undefined`` · Optional
61
+