Skip to content

Commit 0d8b005

Browse files
committed
update documentation for afcl
1 parent b0b1a03 commit 0d8b005

File tree

6 files changed

+74
-0
lines changed

6 files changed

+74
-0
lines changed

adminforth/documentation/docs/tutorial/03-Customization/14-afcl.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,80 @@ Custom labels in the ProgressBar component allow you to customize the text displ
571571
</div>
572572
</div>
573573

574+
## Skeleton
575+
576+
Skeleton component is used to display a loading state for a component. You can use prop `type` to set the type of the skeleton.
577+
578+
<div class="split-screen" >
579+
<div>
580+
```html
581+
<div class="flex flex-col gap-2">
582+
<Skeleton class="w-full h-4" />
583+
<Skeleton class="w-full h-2" />
584+
<Skeleton class="w-full h-2" />
585+
<Skeleton class="w-full h-2" />
586+
<Skeleton class="w-full h-2" />
587+
</div>
588+
```
589+
</div>
590+
<div>
591+
![Spinner](image-82.png)
592+
</div>
593+
</div>
594+
595+
### Skeleton image
596+
597+
<div class="split-screen" >
598+
<div>
599+
```html
600+
<Skeleton type="image" class="w-full h-full" />
601+
```
602+
</div>
603+
<div>
604+
![Skeleton type](image-83.png)
605+
</div>
606+
</div>
607+
608+
### Skeleton video
609+
610+
<div class="split-screen" >
611+
<div>
612+
```html
613+
<Skeleton type="video" class="w-full h-full" />
614+
```
615+
</div>
616+
<div>
617+
![Skeleton type video](image-84.png)
618+
</div>
619+
</div>
620+
621+
### Skeleton avatar
622+
623+
<div class="split-screen" >
624+
<div>
625+
```html
626+
<Skeleton type="avatar" class="w-20 h-20" />
627+
```
628+
</div>
629+
<div>
630+
![Skeleton avatar](image-85.png)
631+
</div>
632+
</div>
633+
634+
## Spinner
635+
636+
Spinner component is used to display a loading state for a component.
637+
638+
<div class="split-screen" >
639+
<div>
640+
```html
641+
<Spinner class="w-10 h-10" />
642+
```
643+
</div>
644+
<div>
645+
![Spinner](image-86.png)
646+
</div>
647+
</div>
574648

575649
## Bar Chart
576650

4.46 KB
Loading
4.56 KB
Loading
4.62 KB
Loading
7.07 KB
Loading
7.27 KB
Loading

0 commit comments

Comments
 (0)