Skip to content

Commit f54e9bf

Browse files
committed
Add the new components to the lab demo
1 parent db9ea97 commit f54e9bf

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

packages/lab-example/src/index.tsx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
Combobox,
1616
DataGrid,
1717
DateField,
18+
Disclosure,
1819
Divider,
1920
Listbox,
2021
Menu,
@@ -27,6 +28,7 @@ import {
2728
RadioGroup,
2829
Search,
2930
Select,
31+
Skeleton,
3032
Slider,
3133
SliderLabel,
3234
Switch,
@@ -331,6 +333,9 @@ function Artwork(props: { dataRef: React.Ref<WebDataGrid> }): JSX.Element {
331333
</Checkbox>
332334
</div>
333335
<Switch onChange={onChangeConsole}>Switch</Switch>
336+
<Disclosure title="Disclosure">
337+
<p>Very long blabla</p>
338+
</Disclosure>
334339
</div>
335340
<div className="jp-FlexColumn" style={{ gridColumn: 3 }}>
336341
<Avatar shape="circle">JS</Avatar>
@@ -413,6 +418,19 @@ function Artwork(props: { dataRef: React.Ref<WebDataGrid> }): JSX.Element {
413418
aria-label="With Sticky Header"
414419
></DataGrid>
415420

421+
<div style={{ display: 'block', width: '100%' }}>
422+
<Skeleton
423+
shimmer={true}
424+
shape="circle"
425+
style={{ borderRadius: '4px', width: '50px', height: '50px' }}
426+
></Skeleton>
427+
<Skeleton
428+
shimmer={true}
429+
shape="rect"
430+
style={{ borderRadius: '4px', marginTop: '10px', height: '10px' }}
431+
></Skeleton>
432+
</div>
433+
416434
<Tabs onChange={onEvent}>
417435
<Tab id="one">One</Tab>
418436
<Tab id="two">Two</Tab>
@@ -530,6 +548,9 @@ function createNode(): HTMLElement {
530548
<jp-checkbox disabled>Label</jp-checkbox>
531549
</div>
532550
<jp-switch>Switch</jp-switch>
551+
<jp-disclosure title="Disclosure">
552+
<p>Very long blablabla to be disclosed.</p>
553+
</jp-disclosure>
533554
</div>
534555
<div class="jp-FlexColumn" style="grid-column: 3;">
535556
<jp-badge>18</jp-badge>
@@ -607,6 +628,19 @@ function createNode(): HTMLElement {
607628
608629
<jp-data-grid id="basic-grid" generate-header="sticky" aria-label="With Sticky Header"></jp-data-grid>
609630
631+
<div style="display: block; width: 100%;">
632+
<jp-skeleton
633+
style="border-radius: 4px; width: 50px; height: 50px;"
634+
shape="circle"
635+
shimmer
636+
></jp-skeleton>
637+
<jp-skeleton
638+
style="border-radius: 4px; margin-top: 10px; height: 10px;"
639+
shape="rect"
640+
shimmer
641+
></jp-skeleton>
642+
</div>
643+
610644
<jp-tabs aria-label="Default">
611645
<jp-tab id="tab-1">Tab 1</jp-tab>
612646
<jp-tab id="tab-2">Tab 2</jp-tab>

0 commit comments

Comments
 (0)