mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
docs: add new component docs
This commit is contained in:
parent
c2fb2d213d
commit
2008d0035f
130 changed files with 6662 additions and 3801 deletions
24
docs/src/pages/components/Pagination.svx
Normal file
24
docs/src/pages/components/Pagination.svx
Normal file
|
@ -0,0 +1,24 @@
|
|||
<script>
|
||||
import { Pagination, PaginationSkeleton } from "carbon-components-svelte";
|
||||
import Preview from "../../components/Preview.svelte";
|
||||
</script>
|
||||
|
||||
### Default
|
||||
|
||||
<Pagination totalItems={102} pageSizes="{[10, 15, 20]}" />
|
||||
|
||||
### Current page
|
||||
|
||||
<Pagination totalItems={102} page={4} />
|
||||
|
||||
### Custom page sizes
|
||||
|
||||
<Pagination totalItems={102} pageSizes="{[16, 36, 99]}" pageSize="{36}" />
|
||||
|
||||
### Hidden page input
|
||||
|
||||
<Pagination totalItems={102} pageInputDisabled />
|
||||
|
||||
### Skeleton
|
||||
|
||||
<PaginationSkeleton />
|
Loading…
Add table
Add a link
Reference in a new issue