@pantoia/ui 0.3.0 → 0.4.0

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.
Files changed (62) hide show
  1. package/accordion/index.module.css +4 -4
  2. package/accordion/index.tsx +21 -51
  3. package/alert-dialog/index.tsx +36 -42
  4. package/badge/index.tsx +1 -1
  5. package/button/index.tsx +31 -30
  6. package/callout/index.tsx +4 -4
  7. package/checkbox/index.tsx +20 -85
  8. package/combobox/index.tsx +122 -316
  9. package/command-palette/index.tsx +51 -32
  10. package/dialog/index.tsx +28 -24
  11. package/dist/index.js +5 -5
  12. package/drawer/index.module.css +2 -2
  13. package/drawer/index.tsx +52 -130
  14. package/dropdown-menu/index.tsx +87 -95
  15. package/field/index.tsx +27 -86
  16. package/input/index.tsx +7 -3
  17. package/kbd/index.tsx +2 -2
  18. package/label/index.tsx +6 -8
  19. package/number-field/index.tsx +122 -173
  20. package/package.json +2 -6
  21. package/popover/index.tsx +61 -32
  22. package/radio-group/index.tsx +35 -38
  23. package/registry.json +64 -154
  24. package/select/index.tsx +141 -70
  25. package/switch/index.tsx +13 -6
  26. package/table/index.tsx +1 -2
  27. package/tabs/index.module.css +3 -3
  28. package/tabs/index.tsx +22 -76
  29. package/textarea/index.tsx +19 -7
  30. package/toast/index.module.css +187 -0
  31. package/toast/index.tsx +141 -46
  32. package/toggle/index.tsx +4 -3
  33. package/tokens.css +7 -1
  34. package/tooltip/index.tsx +61 -30
  35. package/utilities.css +11 -6
  36. package/accordion/AGENTS.md +0 -60
  37. package/alert-dialog/AGENTS.md +0 -78
  38. package/badge/AGENTS.md +0 -35
  39. package/button/AGENTS.md +0 -39
  40. package/callout/AGENTS.md +0 -37
  41. package/checkbox/AGENTS.md +0 -54
  42. package/combobox/AGENTS.md +0 -150
  43. package/command-palette/AGENTS.md +0 -41
  44. package/dialog/AGENTS.md +0 -81
  45. package/drawer/AGENTS.md +0 -66
  46. package/dropdown-menu/AGENTS.md +0 -133
  47. package/field/AGENTS.md +0 -92
  48. package/input/AGENTS.md +0 -35
  49. package/kbd/AGENTS.md +0 -17
  50. package/label/AGENTS.md +0 -21
  51. package/number-field/AGENTS.md +0 -49
  52. package/popover/AGENTS.md +0 -64
  53. package/radio-group/AGENTS.md +0 -81
  54. package/select/AGENTS.md +0 -90
  55. package/switch/AGENTS.md +0 -37
  56. package/table/AGENTS.md +0 -82
  57. package/tabs/AGENTS.md +0 -61
  58. package/test-utils.ts +0 -10
  59. package/textarea/AGENTS.md +0 -35
  60. package/toast/AGENTS.md +0 -34
  61. package/toggle/AGENTS.md +0 -37
  62. package/tooltip/AGENTS.md +0 -50
@@ -1,78 +0,0 @@
1
- # AlertDialog
2
-
3
- ```
4
- 받기 npx @pantoia/ui add alert-dialog
5
- 층 ui
6
- 파일 alert-dialog/index.tsx, alert-dialog/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `AlertDialog` | `AlertDialogProps` |
14
- | `AlertDialogTrigger` | - |
15
- | `AlertDialogContent` | `ComponentProps<typeof AlertDialogPrimitive.Content>` |
16
- | `AlertDialogTitle` | `ComponentProps<typeof AlertDialogPrimitive.Title>` |
17
- | `AlertDialogDescription` | `ComponentProps<typeof AlertDialogPrimitive.Description>` |
18
- | `AlertDialogHeader` | `AlertDialogHeaderProps` |
19
- | `AlertDialogFooter` | - |
20
- | `AlertDialogAction` | - |
21
- | `AlertDialogCancel` | - |
22
-
23
- ### `AlertDialogTrigger`
24
-
25
- | 이름 | 타입 | 필수 |
26
- |---|---|---|
27
- | `children` | `ReactNode` | 예 |
28
-
29
- ### `AlertDialogFooter`
30
-
31
- | 이름 | 타입 | 필수 |
32
- |---|---|---|
33
- | `className` | `string` | |
34
- | `children` | `ReactNode` | |
35
-
36
- ### `AlertDialogAction`
37
-
38
- | 이름 | 타입 | 필수 |
39
- |---|---|---|
40
- | `color` | `'neutral' \| 'brand' \| 'danger'` | |
41
- | `onClick` | `() => void` | |
42
- | `className` | `string` | |
43
- | `children` | `ReactNode` | |
44
-
45
- ### `AlertDialogCancel`
46
-
47
- | 이름 | 타입 | 필수 |
48
- |---|---|---|
49
- | `className` | `string` | |
50
- | `children` | `ReactNode` | |
51
-
52
- ## props
53
-
54
- ### `AlertDialogProps`
55
-
56
- | 이름 | 타입 | 필수 |
57
- |---|---|---|
58
- | `open` | `boolean` | |
59
- | `defaultOpen` | `boolean` | |
60
- | `onOpenChange` | `(open: boolean) => void` | |
61
- | `children` | `ReactNode` | |
62
-
63
- ### `AlertDialogHeaderProps`
64
-
65
- | 이름 | 타입 | 필수 |
66
- |---|---|---|
67
- | `lead` | `ReactNode` | |
68
- | `trail` | `ReactNode` | |
69
- | `className` | `string` | |
70
- | `children` | `ReactNode` | |
71
-
72
- ## 함께 받는 것
73
-
74
- `button`, `tv`
75
-
76
- ## npm 의존
77
-
78
- `radix-ui`
package/badge/AGENTS.md DELETED
@@ -1,35 +0,0 @@
1
- # Badge
2
-
3
- ```
4
- 받기 npx @pantoia/ui add badge
5
- 층 ui
6
- 파일 badge/index.tsx, badge/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Badge` | `BadgeProps` |
14
-
15
- ## props
16
-
17
- ### `BadgeProps`
18
-
19
- `Omit<HTMLAttributes<HTMLSpanElement>, 'color'>` 를 확장한다.
20
-
21
- | 이름 | 타입 | 필수 |
22
- |---|---|---|
23
- | `color` | `'neutral' \| 'brand' \| 'info' \| 'success' \| 'warning' \| 'danger'` | |
24
- | `shape` | `'square' \| 'pill'` | |
25
-
26
- ## 변형 - `badge`
27
-
28
- | 축 | 값 | 기본 |
29
- |---|---|---|
30
- | `color` | `neutral`, `brand`, `info`, `success`, `warning`, `danger` | `neutral` |
31
- | `shape` | `square`, `pill` | `square` |
32
-
33
- ## 함께 받는 것
34
-
35
- `tv`
package/button/AGENTS.md DELETED
@@ -1,39 +0,0 @@
1
- # Button
2
-
3
- ```
4
- 받기 npx @pantoia/ui add button
5
- 층 ui
6
- 파일 button/index.tsx, button/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Button` | `ButtonProps` |
14
-
15
- ## props
16
-
17
- ### `ButtonProps`
18
-
19
- `Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>` 를 확장한다.
20
-
21
- | 이름 | 타입 | 필수 |
22
- |---|---|---|
23
- | `color` | `'brand' \| 'neutral' \| 'danger'` | 예 |
24
- | `emphasis` | `'solid' \| 'weak' \| 'outline' \| 'ghost'` | 예 |
25
- | `size` | `'sm' \| 'md' \| 'lg'` | |
26
- | `shape` | `'rect' \| 'square' \| 'pill' \| 'circle'` | |
27
-
28
- ## 변형 - `button`
29
-
30
- | 축 | 값 | 기본 |
31
- |---|---|---|
32
- | `color` | `brand`, `neutral`, `danger` | - |
33
- | `emphasis` | `solid`, `weak`, `outline`, `ghost` | - |
34
- | `size` | `sm`, `md`, `lg` | `md` |
35
- | `shape` | `rect`, `square`, `pill`, `circle` | `rect` |
36
-
37
- ## 함께 받는 것
38
-
39
- `tv`
package/callout/AGENTS.md DELETED
@@ -1,37 +0,0 @@
1
- # Callout
2
-
3
- ```
4
- 받기 npx @pantoia/ui add callout
5
- 층 ui
6
- 파일 callout/index.tsx, callout/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Callout` | `CalloutProps` |
14
-
15
- ## props
16
-
17
- ### `CalloutProps`
18
-
19
- | 이름 | 타입 | 필수 |
20
- |---|---|---|
21
- | `color` | `'info' \| 'success' \| 'warning' \| 'danger'` | |
22
- | `icon` | `ReactNode` | |
23
- | `title` | `ReactNode` | |
24
- | `className` | `string` | |
25
- | `children` | `ReactNode` | |
26
-
27
- ## 변형 - `callout`
28
-
29
- 슬롯 `root`, `icon`, `title`, `body`, `text`
30
-
31
- | 축 | 값 | 기본 |
32
- |---|---|---|
33
- | `color` | `info`, `success`, `warning`, `danger` | `info` |
34
-
35
- ## 함께 받는 것
36
-
37
- `tv`
@@ -1,54 +0,0 @@
1
- # Checkbox
2
-
3
- ```
4
- 받기 npx @pantoia/ui add checkbox
5
- 층 ui
6
- 파일 checkbox/index.tsx, checkbox/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `CheckboxGroup` | `CheckboxGroupProps` |
14
- | `Checkbox` | `CheckboxProps` |
15
-
16
- ## props
17
-
18
- ### `CheckboxGroupProps`
19
-
20
- | 이름 | 타입 | 필수 |
21
- |---|---|---|
22
- | `value` | `string[]` | |
23
- | `defaultValue` | `string[]` | |
24
- | `onValueChange` | `(value: string[]) => void` | |
25
- | `disabled` | `boolean` | |
26
- | `className` | `string` | |
27
- | `children` | `ReactNode` | |
28
-
29
- ### `CheckboxProps`
30
-
31
- `Omit<ComponentProps<typeof CheckboxPrimitive.Root>, 'checked' | 'onCheckedChange' | 'value'>` 를 확장한다.
32
-
33
- | 이름 | 타입 | 필수 |
34
- |---|---|---|
35
- | `value` | `string` | |
36
- | `checked` | `boolean` | |
37
- | `onCheckedChange` | `(checked: boolean) => void` | |
38
- | `indeterminate` | `boolean` | |
39
- | `onIndeterminateChange` | `(indeterminate: boolean) => void` | |
40
- | `color` | `'neutral' \| 'info' \| 'success' \| 'warning' \| 'danger'` | |
41
-
42
- ## 변형 - `checkbox`
43
-
44
- | 축 | 값 | 기본 |
45
- |---|---|---|
46
- | `color` | `neutral`, `info`, `success`, `warning`, `danger` | `neutral` |
47
-
48
- ## 함께 받는 것
49
-
50
- `tv`
51
-
52
- ## npm 의존
53
-
54
- `radix-ui`
@@ -1,150 +0,0 @@
1
- # Combobox
2
-
3
- ```
4
- 받기 npx @pantoia/ui add combobox
5
- 층 ui
6
- 파일 combobox/index.tsx, combobox/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Combobox` | `ComboboxProps` |
14
- | `ComboboxAnchor` | `ComboboxAnchorProps` |
15
- | `ComboboxInput` | `ComboboxInputProps` |
16
- | `ComboboxTrigger` | - |
17
- | `ComboboxCancel` | - |
18
- | `ComboboxContent` | `ComboboxContentProps` |
19
- | `ComboboxViewport` | - |
20
- | `ComboboxItem` | `ComboboxItemProps` |
21
- | `ComboboxItemText` | - |
22
- | `ComboboxItemDescription` | - |
23
- | `ComboboxGroup` | - |
24
- | `ComboboxEmpty` | - |
25
- | `ComboboxSeparator` | - |
26
-
27
- ### `ComboboxTrigger`
28
-
29
- | 이름 | 타입 | 필수 |
30
- |---|---|---|
31
- | `label` | `string` | |
32
- | `disabled` | `boolean` | |
33
- | `className` | `string` | |
34
-
35
- ### `ComboboxCancel`
36
-
37
- | 이름 | 타입 | 필수 |
38
- |---|---|---|
39
- | `label` | `string` | |
40
- | `className` | `string` | |
41
-
42
- ### `ComboboxViewport`
43
-
44
- | 이름 | 타입 | 필수 |
45
- |---|---|---|
46
- | `label` | `string` | |
47
- | `className` | `string` | |
48
- | `children` | `ReactNode` | |
49
-
50
- ### `ComboboxItemText`
51
-
52
- | 이름 | 타입 | 필수 |
53
- |---|---|---|
54
- | `className` | `string` | |
55
- | `children` | `ReactNode` | |
56
-
57
- ### `ComboboxItemDescription`
58
-
59
- | 이름 | 타입 | 필수 |
60
- |---|---|---|
61
- | `className` | `string` | |
62
- | `children` | `ReactNode` | |
63
-
64
- ### `ComboboxGroup`
65
-
66
- | 이름 | 타입 | 필수 |
67
- |---|---|---|
68
- | `label` | `string` | |
69
- | `className` | `string` | |
70
- | `children` | `ReactNode` | |
71
-
72
- ### `ComboboxEmpty`
73
-
74
- | 이름 | 타입 | 필수 |
75
- |---|---|---|
76
- | `className` | `string` | |
77
- | `children` | `ReactNode` | |
78
-
79
- ### `ComboboxSeparator`
80
-
81
- | 이름 | 타입 | 필수 |
82
- |---|---|---|
83
- | `className` | `string` | |
84
-
85
- ## 도우미
86
-
87
- `contains(text: string, search: string)`
88
-
89
- ## props
90
-
91
- ### `ComboboxProps`
92
-
93
- | 이름 | 타입 | 필수 |
94
- |---|---|---|
95
- | `value` | `string` | |
96
- | `defaultValue` | `string` | |
97
- | `onValueChange` | `(value: string) => void` | |
98
- | `open` | `boolean` | |
99
- | `defaultOpen` | `boolean` | |
100
- | `onOpenChange` | `(open: boolean) => void` | |
101
- | `ignoreFilter` | `boolean` | |
102
- | `className` | `string` | |
103
- | `children` | `ReactNode` | |
104
-
105
- ### `ComboboxAnchorProps`
106
-
107
- | 이름 | 타입 | 필수 |
108
- |---|---|---|
109
- | `surface` | `'bare' \| 'well'` | |
110
- | `size` | `'sm' \| 'md' \| 'lg'` | |
111
- | `className` | `string` | |
112
- | `children` | `ReactNode` | |
113
-
114
- ### `ComboboxInputProps`
115
-
116
- `Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'>` 를 확장한다.
117
-
118
- | 이름 | 타입 | 필수 |
119
- |---|---|---|
120
- | `value` | `string` | |
121
- | `onValueChange` | `(value: string) => void` | |
122
-
123
- ### `ComboboxContentProps`
124
-
125
- `Omit<ComponentProps<typeof PopoverPrimitive.Content>, 'align' | 'sideOffset' | 'onOpenAutoFocus'>`
126
-
127
- ### `ComboboxItemProps`
128
-
129
- | 이름 | 타입 | 필수 |
130
- |---|---|---|
131
- | `value` | `string` | 예 |
132
- | `textValue` | `string` | |
133
- | `disabled` | `boolean` | |
134
- | `className` | `string` | |
135
- | `children` | `ReactNode` | |
136
-
137
- ## 변형 - `comboboxAnchor`
138
-
139
- | 축 | 값 | 기본 |
140
- |---|---|---|
141
- | `surface` | `bare`, `well` | `bare` |
142
- | `size` | `sm`, `md`, `lg` | `md` |
143
-
144
- ## 함께 받는 것
145
-
146
- `tv`
147
-
148
- ## npm 의존
149
-
150
- `radix-ui`
@@ -1,41 +0,0 @@
1
- # CommandPalette
2
-
3
- ```
4
- 받기 npx @pantoia/ui add command-palette
5
- 층 derived
6
- 파일 command-palette/index.tsx, command-palette/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `CommandPalette` | `CommandPaletteProps` |
14
-
15
- ## props
16
-
17
- ### `CommandPaletteItem`
18
-
19
- | 이름 | 타입 | 필수 |
20
- |---|---|---|
21
- | `value` | `string` | 예 |
22
- | `label` | `string` | 예 |
23
- | `group` | `string` | |
24
-
25
- ### `CommandPaletteProps`
26
-
27
- | 이름 | 타입 | 필수 |
28
- |---|---|---|
29
- | `open` | `boolean` | |
30
- | `defaultOpen` | `boolean` | |
31
- | `onOpenChange` | `(open: boolean) => void` | |
32
- | `items` | `CommandPaletteItem[]` | 예 |
33
- | `title` | `string` | 예 |
34
- | `placeholder` | `string` | 예 |
35
- | `emptyText` | `string` | 예 |
36
- | `onSelect` | `(value: string) => void` | |
37
- | `className` | `string` | |
38
-
39
- ## 함께 받는 것
40
-
41
- `combobox`, `dialog`, `kbd`
package/dialog/AGENTS.md DELETED
@@ -1,81 +0,0 @@
1
- # Dialog
2
-
3
- ```
4
- 받기 npx @pantoia/ui add dialog
5
- 층 ui
6
- 파일 dialog/index.tsx, dialog/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Dialog` | `DialogProps` |
14
- | `DialogTrigger` | - |
15
- | `DialogClose` | - |
16
- | `DialogContent` | `DialogContentProps` |
17
- | `DialogTitle` | `ComponentProps<typeof DialogPrimitive.Title>` |
18
- | `DialogDescription` | `ComponentProps<typeof DialogPrimitive.Description>` |
19
- | `DialogHeader` | `DialogHeaderProps` |
20
- | `DialogFooter` | - |
21
-
22
- ### `DialogTrigger`
23
-
24
- | 이름 | 타입 | 필수 |
25
- |---|---|---|
26
- | `children` | `ReactNode` | 예 |
27
-
28
- ### `DialogClose`
29
-
30
- | 이름 | 타입 | 필수 |
31
- |---|---|---|
32
- | `children` | `ReactNode` | 예 |
33
-
34
- ### `DialogFooter`
35
-
36
- | 이름 | 타입 | 필수 |
37
- |---|---|---|
38
- | `className` | `string` | |
39
- | `children` | `ReactNode` | |
40
-
41
- ## props
42
-
43
- ### `DialogProps`
44
-
45
- | 이름 | 타입 | 필수 |
46
- |---|---|---|
47
- | `open` | `boolean` | |
48
- | `defaultOpen` | `boolean` | |
49
- | `onOpenChange` | `(open: boolean) => void` | |
50
- | `children` | `ReactNode` | |
51
-
52
- ### `DialogContentProps`
53
-
54
- `ComponentProps<typeof DialogPrimitive.Content>` 를 확장한다.
55
-
56
- | 이름 | 타입 | 필수 |
57
- |---|---|---|
58
- | `size` | `'md' \| 'full' \| 'top'` | |
59
-
60
- ### `DialogHeaderProps`
61
-
62
- | 이름 | 타입 | 필수 |
63
- |---|---|---|
64
- | `lead` | `ReactNode` | |
65
- | `trail` | `ReactNode` | |
66
- | `className` | `string` | |
67
- | `children` | `ReactNode` | |
68
-
69
- ## 변형 - `dialog`
70
-
71
- | 축 | 값 | 기본 |
72
- |---|---|---|
73
- | `size` | `md`, `full`, `top` | `md` |
74
-
75
- ## 함께 받는 것
76
-
77
- `tv`
78
-
79
- ## npm 의존
80
-
81
- `radix-ui`
package/drawer/AGENTS.md DELETED
@@ -1,66 +0,0 @@
1
- # Drawer
2
-
3
- ```
4
- 받기 npx @pantoia/ui add drawer
5
- 층 ui
6
- 파일 drawer/index.tsx, drawer/index.module.css, drawer/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Drawer` | `DrawerProps` |
14
- | `DrawerTrigger` | - |
15
- | `DrawerClose` | - |
16
- | `DrawerContent` | `ComponentProps<typeof Dialog.Content>` |
17
- | `DrawerHeader` | `DrawerHeaderProps` |
18
- | `DrawerTitle` | `ComponentProps<typeof Dialog.Title>` |
19
- | `DrawerDescription` | `ComponentProps<typeof Dialog.Description>` |
20
-
21
- ### `DrawerTrigger`
22
-
23
- | 이름 | 타입 | 필수 |
24
- |---|---|---|
25
- | `children` | `ReactNode` | 예 |
26
-
27
- ### `DrawerClose`
28
-
29
- | 이름 | 타입 | 필수 |
30
- |---|---|---|
31
- | `children` | `ReactNode` | 예 |
32
-
33
- ## props
34
-
35
- ### `DrawerProps`
36
-
37
- | 이름 | 타입 | 필수 |
38
- |---|---|---|
39
- | `side` | `Side` | |
40
- | `open` | `boolean` | |
41
- | `defaultOpen` | `boolean` | |
42
- | `onOpenChange` | `(open: boolean) => void` | |
43
- | `children` | `ReactNode` | 예 |
44
-
45
- ### `DrawerHeaderProps`
46
-
47
- | 이름 | 타입 | 필수 |
48
- |---|---|---|
49
- | `lead` | `ReactNode` | |
50
- | `trail` | `ReactNode` | |
51
- | `className` | `string` | |
52
- | `children` | `ReactNode` | |
53
-
54
- ## 변형 - `drawerContent`
55
-
56
- | 축 | 값 | 기본 |
57
- |---|---|---|
58
- | `side` | `left`, `right` | - |
59
-
60
- ## 함께 받는 것
61
-
62
- `tv`
63
-
64
- ## npm 의존
65
-
66
- `radix-ui`
@@ -1,133 +0,0 @@
1
- # DropdownMenu
2
-
3
- ```
4
- 받기 npx @pantoia/ui add dropdown-menu
5
- 층 ui
6
- 파일 dropdown-menu/index.tsx, dropdown-menu/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `DropdownMenu` | `DropdownMenuProps` |
14
- | `DropdownMenuTrigger` | - |
15
- | `DropdownMenuContent` | `DropdownMenuContentProps` |
16
- | `DropdownMenuGroup` | - |
17
- | `DropdownMenuItem` | `DropdownMenuItemProps` |
18
- | `DropdownMenuCheckboxItem` | - |
19
- | `DropdownMenuRadioGroup` | - |
20
- | `DropdownMenuRadioItem` | - |
21
- | `DropdownMenuSeparator` | - |
22
- | `DropdownMenuSub` | - |
23
- | `DropdownMenuSubTrigger` | - |
24
- | `DropdownMenuSubContent` | `ComponentProps<typeof MenuPrimitive.SubContent>` |
25
-
26
- ### `DropdownMenuTrigger`
27
-
28
- | 이름 | 타입 | 필수 |
29
- |---|---|---|
30
- | `children` | `ReactNode` | 예 |
31
-
32
- ### `DropdownMenuGroup`
33
-
34
- | 이름 | 타입 | 필수 |
35
- |---|---|---|
36
- | `label` | `string` | |
37
- | `className` | `string` | |
38
- | `children` | `ReactNode` | |
39
-
40
- ### `DropdownMenuCheckboxItem`
41
-
42
- | 이름 | 타입 | 필수 |
43
- |---|---|---|
44
- | `checked` | `boolean` | |
45
- | `onCheckedChange` | `(checked: boolean) => void` | |
46
- | `disabled` | `boolean` | |
47
- | `className` | `string` | |
48
- | `children` | `ReactNode` | |
49
-
50
- ### `DropdownMenuRadioGroup`
51
-
52
- | 이름 | 타입 | 필수 |
53
- |---|---|---|
54
- | `value` | `string` | |
55
- | `onValueChange` | `(value: string) => void` | |
56
- | `children` | `ReactNode` | |
57
-
58
- ### `DropdownMenuRadioItem`
59
-
60
- | 이름 | 타입 | 필수 |
61
- |---|---|---|
62
- | `value` | `string` | 예 |
63
- | `disabled` | `boolean` | |
64
- | `className` | `string` | |
65
- | `children` | `ReactNode` | |
66
-
67
- ### `DropdownMenuSeparator`
68
-
69
- | 이름 | 타입 | 필수 |
70
- |---|---|---|
71
- | `className` | `string` | |
72
-
73
- ### `DropdownMenuSub`
74
-
75
- | 이름 | 타입 | 필수 |
76
- |---|---|---|
77
- | `open` | `boolean` | |
78
- | `defaultOpen` | `boolean` | |
79
- | `onOpenChange` | `(open: boolean) => void` | |
80
- | `children` | `ReactNode` | |
81
-
82
- ### `DropdownMenuSubTrigger`
83
-
84
- | 이름 | 타입 | 필수 |
85
- |---|---|---|
86
- | `disabled` | `boolean` | |
87
- | `lead` | `ReactNode` | |
88
- | `className` | `string` | |
89
- | `children` | `ReactNode` | |
90
-
91
- ## props
92
-
93
- ### `DropdownMenuProps`
94
-
95
- | 이름 | 타입 | 필수 |
96
- |---|---|---|
97
- | `open` | `boolean` | |
98
- | `defaultOpen` | `boolean` | |
99
- | `onOpenChange` | `(open: boolean) => void` | |
100
- | `children` | `ReactNode` | |
101
-
102
- ### `DropdownMenuContentProps`
103
-
104
- `Omit<ComponentProps<typeof MenuPrimitive.Content>, 'align'>` 를 확장한다.
105
-
106
- | 이름 | 타입 | 필수 |
107
- |---|---|---|
108
- | `align` | `'start' \| 'center' \| 'end'` | |
109
- | `arrow` | `boolean` | |
110
-
111
- ### `DropdownMenuItemProps`
112
-
113
- `Omit<ComponentProps<typeof MenuPrimitive.Item>, 'color'>` 를 확장한다.
114
-
115
- | 이름 | 타입 | 필수 |
116
- |---|---|---|
117
- | `color` | `'neutral' \| 'danger'` | |
118
- | `lead` | `ReactNode` | |
119
- | `trail` | `ReactNode` | |
120
-
121
- ## 변형 - `menuItem`
122
-
123
- | 축 | 값 | 기본 |
124
- |---|---|---|
125
- | `color` | `neutral`, `danger` | `neutral` |
126
-
127
- ## 함께 받는 것
128
-
129
- `tv`
130
-
131
- ## npm 의존
132
-
133
- `radix-ui`