File tree 5 files changed +399
-32
lines changed
docs/src/app/(private)/experiments/collapsible
5 files changed +399
-32
lines changed Original file line number Diff line number Diff line change
1
+ 'use client' ;
2
+ import * as React from 'react' ;
3
+
4
+ export default function Nothing ( ) {
5
+ return < div > This is just a dummy file to hold icons</ div > ;
6
+ }
7
+
8
+ export function ExpandMoreIcon ( props : React . SVGProps < SVGSVGElement > ) {
9
+ return (
10
+ < svg
11
+ xmlns = "http://www.w3.org/2000/svg"
12
+ { ...props }
13
+ width = "24"
14
+ height = "24"
15
+ viewBox = "0 0 24 24"
16
+ fill = "none"
17
+ >
18
+ < path d = "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" fill = "currentColor" />
19
+ </ svg >
20
+ ) ;
21
+ }
Original file line number Diff line number Diff line change 22
22
overflow : hidden;
23
23
box-sizing : border-box;
24
24
width : 100% ;
25
- animation-fill-mode : forwards !important ;
26
25
27
26
& [data-open ] {
28
27
animation : slide-down var (--duration ) ease-out;
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import classes from './animation.module.css';
8
8
9
9
import { useAnimationsFinished } from '../../../../../../packages/react/src/utils/useAnimationsFinished' ;
10
10
import { useEventCallback } from '../../../../../../packages/react/src/utils/useEventCallback' ;
11
- // import { useForkRef } from '../../../../../../packages/react/src/utils/useForkRef';
12
11
import { useOnMount } from '../../../../../../packages/react/src/utils/useOnMount' ;
12
+ import { ExpandMoreIcon } from './_icons' ;
13
13
14
14
function Collapsible ( props : {
15
15
defaultOpen ?: boolean ;
@@ -152,18 +152,3 @@ export default function App() {
152
152
</ div >
153
153
) ;
154
154
}
155
-
156
- function ExpandMoreIcon ( props : React . SVGProps < SVGSVGElement > ) {
157
- return (
158
- < svg
159
- xmlns = "http://www.w3.org/2000/svg"
160
- { ...props }
161
- width = "24"
162
- height = "24"
163
- viewBox = "0 0 24 24"
164
- fill = "none"
165
- >
166
- < path d = "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" fill = "currentColor" />
167
- </ svg >
168
- ) ;
169
- }
You can’t perform that action at this time.
0 commit comments