-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(pagination-nav): add playground story (#12439)
* chore(pagination-nav): add playground story closes #122273 * chore: rename story Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b5655df
commit 9cb3ddb
Showing
3 changed files
with
55 additions
and
61 deletions.
There are no files selected for viewing
37 changes: 0 additions & 37 deletions
37
packages/react/src/components/PaginationNav/PaginationNav-story.js
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
packages/react/src/components/PaginationNav/PaginationNav.stories.js
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,55 @@ | ||
/** | ||
* Copyright IBM Corp. 2020 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import React from 'react'; | ||
import PaginationNav from '../PaginationNav'; | ||
|
||
export default { | ||
title: 'Components/PaginationNav', | ||
component: PaginationNav, | ||
subcomponents: {}, | ||
parameters: {}, | ||
}; | ||
|
||
export const Default = () => ( | ||
<div style={{ width: '800px' }}> | ||
<PaginationNav itemsShown={10} totalItems={25} /> | ||
</div> | ||
); | ||
|
||
export const Playground = (args) => ( | ||
<div style={{ width: '800px' }}> | ||
<PaginationNav {...args} /> | ||
</div> | ||
); | ||
|
||
Playground.argTypes = { | ||
loop: { | ||
defaultValue: false, | ||
control: { | ||
type: 'boolean', | ||
}, | ||
}, | ||
itemsShown: { | ||
control: { | ||
type: 'number', | ||
}, | ||
defaultValue: 10, | ||
}, | ||
page: { | ||
control: { | ||
type: 'number', | ||
}, | ||
defaultValue: 0, | ||
}, | ||
totalItems: { | ||
control: { | ||
type: 'number', | ||
}, | ||
defaultValue: 25, | ||
}, | ||
}; |
24 changes: 0 additions & 24 deletions
24
packages/react/src/components/PaginationNav/next/PaginationNav.stories.js
This file was deleted.
Oops, something went wrong.