Skip to content

Commit

Permalink
Creating Button component story
Browse files Browse the repository at this point in the history
  • Loading branch information
brenocastelo committed Dec 9, 2022
1 parent 575fb0e commit 50c1e12
Show file tree
Hide file tree
Showing 26 changed files with 521 additions and 642 deletions.
4 changes: 2 additions & 2 deletions packages/docs/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
"stories": [
"../stories/**/*.stories.mdx",
"../stories/**/*.stories.@(js|jsx|ts|tsx)"
"../src/stories/**/*.stories.mdx",
"../src/stories/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
Expand Down
3 changes: 3 additions & 0 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"vite": "^4.0.0"
},
"dependencies": {
"@ignite-ui/react": "*",
"@ignite-ui/tokens": "*",
"@ignite-ui/eslint-config": "*",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
18 changes: 18 additions & 0 deletions packages/docs/src/stories/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { StoryObj, Meta } from '@storybook/react';
import { Button, ButtonProps } from '@ignite-ui/react';

export default {
title: 'Button',
component: Button,
args: {
children: 'Button',
},
} as Meta<ButtonProps>;

export const Primary: StoryObj<ButtonProps> = {};

export const Large: StoryObj<ButtonProps> = {
args: {
size: 'large',
},
};
50 changes: 0 additions & 50 deletions packages/docs/stories/Button.jsx

This file was deleted.

40 changes: 0 additions & 40 deletions packages/docs/stories/Button.stories.jsx

This file was deleted.

57 changes: 0 additions & 57 deletions packages/docs/stories/Header.jsx

This file was deleted.

24 changes: 0 additions & 24 deletions packages/docs/stories/Header.stories.jsx

This file was deleted.

Loading

0 comments on commit 50c1e12

Please sign in to comment.