Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11c6eaa
commit bffcddc
Showing
6 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react' | ||
import { Story, Meta } from '@storybook/react' | ||
|
||
import Pagination, { PaginationProps } from '.' | ||
import Button from '../Button' | ||
|
||
export default { | ||
title: 'Navigation/Pagination', | ||
component: Pagination, | ||
} as Meta | ||
|
||
export const Default: Story<PaginationProps> = (args) => { | ||
return ( | ||
<Pagination {...args}> | ||
<Button>1</Button> | ||
<Button active>2</Button> | ||
<Button>3</Button> | ||
<Button>4</Button> | ||
</Pagination> | ||
) | ||
} | ||
|
||
Default.args = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import ButtonGroup, { ButtonGroupProps } from "../ButtonGroup" | ||
|
||
export type PaginationProps = ButtonGroupProps | ||
const Pagination = ButtonGroup | ||
export default Pagination |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Pagination, { PaginationProps as TPaginationProps } from './Pagination' | ||
export type PaginationProps = TPaginationProps | ||
export default Pagination |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters