Styled quick start

Copy this entrypoint first. It includes the imports required to get the component on screen.

svelte
<script lang="ts">
  import '@dryui/ui/themes/default.css';
  import '@dryui/ui/themes/dark.css';
  import { Pagination } from '@dryui/ui';
</script>

<Pagination.Root>
  <Pagination.Content>...</Pagination.Content>
  <Pagination.Item>...</Pagination.Item>
  <Pagination.Previous>...</Pagination.Previous>
  <Pagination.Next>...</Pagination.Next>
  <Pagination.Link>...</Pagination.Link>
  <Pagination.Ellipsis>...</Pagination.Ellipsis>
</Pagination.Root>

Import options

Root package

ts
import { Pagination } from '@dryui/ui'

Per-component subpath

ts
import { Pagination } from '@dryui/ui/pagination'

API

Props, CSS variables, and the public data attributes you can target when styling.

Prop Type Description Default Required Bindable

Pagination.Root

page
number
— 1 — —
totalPages
number
— — ✓ —
children
Snippet
Content rendered inside the component. — ✓ —

Pagination.Content

children
Snippet
Content rendered inside the component. — ✓ —

Pagination.Item

children
Snippet
Content rendered inside the component. — ✓ —

Pagination.Previous

children
Snippet
Content rendered inside the component. — ✓ —

Pagination.Next

children
Snippet
Content rendered inside the component. — ✓ —

Pagination.Link

page
number
— — ✓ —
children
Snippet
Content rendered inside the component. — ✓ —

Pagination.Ellipsis