Collection of theme-ui and external components.
created:3/15/2021
updated:3/15/2021
source lines:42
comments %:24

Pagination

Pagination component to navigate previous/next page

Component

import { Pagination } from '@component-controls/components';

Overview

() => (
<Box style={{ width: '100%' }}>
<Pagination
prev={{
link: '/',
title: 'link to prev',
}}
next={{
link: '/',
title: 'link to prev',
}}
/>
</Box>
)

Properties

Name
Description
Default
prev

link and title to previous page

PaginationPage
-
next

link and title to next page

PaginationPage
-

External dependencies

package
imports
peer
ArrowRightIconArrowLeftIcon
react
^17.0.1
FC
*
theme-ui
^0.6.0-alpha.7
jsxTextBox

Internal dependencies

file
imports
"../Link"

Component JSX

Stories

Only Prev

() => (
<Pagination
prev={{
link: '/',
title: 'link to prev',
}}
/>
)

Only Next

() => (
<Pagination
next={{
link: '/',
title: 'link to next',
}}
/>
)