Commit 7d7fbc3
fix(dropdown): Refactor dropdown to pure menu component
Completely rework dropdown component to focus on menu behavior:
- Remove selection state and multiple select
- Add support for navigation links
- Simplify component structure
- Enhance menu item flexibility with href and onSelect
- Update examples to demonstrate new menu-centric approach
- Remove checkmarks and complex selection logic
- Improve component documentation
This change transforms the dropdown into a more flexible navigation and action menu component with clearer separation of concerns.1 parent fb21b1f commit 7d7fbc3
File tree
4 files changed
+586
-570
lines changed- src
- components/Dropdown
- examples
4 files changed
+586
-570
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
36 | | - | |
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
| |||
69 | 65 | | |
70 | 66 | | |
71 | 67 | | |
72 | | - | |
73 | 68 | | |
74 | 69 | | |
75 | 70 | | |
| |||
111 | 106 | | |
112 | 107 | | |
113 | 108 | | |
| 109 | + | |
| 110 | + | |
114 | 111 | | |
115 | 112 | | |
116 | 113 | | |
| |||
0 commit comments