Skip to content

Commit

Permalink
chore(pagination-nav): add playground story (#12439)
Browse files Browse the repository at this point in the history
* 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
alisonjoseph and kodiakhq[bot] authored Oct 31, 2022
1 parent b5655df commit 9cb3ddb
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 61 deletions.
37 changes: 0 additions & 37 deletions packages/react/src/components/PaginationNav/PaginationNav-story.js

This file was deleted.

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,
},
};

This file was deleted.

0 comments on commit 9cb3ddb

Please sign in to comment.