File tree Expand file tree Collapse file tree 4 files changed +49
-0
lines changed
Expand file tree Collapse file tree 4 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 202202 <strong ><BoxModel /><Space w =" md" />Miscellaneous</strong >
203203 <ul >
204204 <li ><a href ={` ${base }/core/box ` }>Box</a ></li >
205+ <li ><a href ={` ${base }/core/collapse ` }>Collapse</a ></li >
205206 <li ><a href ={` ${base }/core/divider ` }>Divider</a ></li >
206207 <li ><a href ={` ${base }/core/observer-render ` }>ObserverRender</a ></li >
207208 <li ><a href ={` ${base }/core/paper ` }>Paper</a ></li >
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ export const searchLinks = [
5050 { title : 'Checkbox' , link : `${ base } /core/checkbox` , section : 'Components' } ,
5151 { title : 'Chip' , link : `${ base } /core/chip` , section : 'Components' } ,
5252 { title : 'Code' , link : `${ base } /core/code` , section : 'Components' } ,
53+ { title : 'Collapse' , link : `${ base } /core/collapse` , section : 'Components' } ,
5354 { title : 'Container' , link : `${ base } /core/container` , section : 'Components' } ,
5455 { title : 'Divider' , link : `${ base } /core/divider` , section : 'Components' } ,
5556 { title : 'Grid' , link : `${ base } /core/grid` , section : 'Components' } ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import TypeScript from '../../components/svgs/TypeScript.svelte';
33import {
44 Container ,
55 Center ,
6+ Collapse ,
67 SimpleGrid ,
78 Stack ,
89 Group ,
@@ -248,5 +249,13 @@ export const components = [
248249 title : 'Box' ,
249250 color : '$blue600' ,
250251 content : 'Read about me'
252+ } ,
253+ {
254+ icon : BoxIcon ,
255+ component : Collapse ,
256+ link : 'core/collapse' ,
257+ title : 'Collapse' ,
258+ color : '$blue600' ,
259+ content : 'Read about me'
251260 }
252261] ;
Original file line number Diff line number Diff line change 1+ ---
2+ title : Collapse
3+ group : ' svelteuidev-core'
4+ packageGroup : ' @svelteuidev/core'
5+ slug : /core/collapse/
6+ category : ' misc'
7+ description : ' Hides and shows content with a slide animation'
8+ importCode : " import { Collapse } from '@svelteuidev/core';"
9+ source : ' svelteui-core/src/components/Collapse/Collapse.svelte'
10+ docs : ' core/collapse'
11+ ---
12+
13+ <script >
14+ import { Demo , CollapseDemos } from ' @svelteuidev/demos' ;
15+ import { Heading } from " $lib/components" ;
16+ import { base } from ' $app/paths' ;
17+ </script >
18+
19+ < svelte:head >
20+
21+ <title >{title} - SvelteUI </title >
22+ </svelte: head >
23+
24+ <Heading {title} {group} {packageGroup} {slug} {category} {description} {importCode} {source} {docs} />
25+
26+ ## Usage
27+
28+ <Demo demo ={CollapseDemos.usage} />
29+
30+ ## Transition duration
31+
32+ It's possible to control the transition duration with the prop ` transitionDuration ` (in milliseconds). It's also possible to disable the opacity animation with the prop ` animateOpacity `
33+
34+ <Demo demo ={CollapseDemos.transition} />
35+
36+ ## Nested collapse
37+
38+ <Demo demo ={CollapseDemos.nested} />
You can’t perform that action at this time.
0 commit comments