Skip to content

Commit

Permalink
chore: adjust template
Browse files Browse the repository at this point in the history
several improvements
update dependencies
use vercel for storybook
lint pre-commit
  • Loading branch information
pixelass committed Aug 1, 2022
1 parent 80947c7 commit 58fe7c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/components/Button/Button.stories.js
@@ -1,9 +1,15 @@
import Button from './';

export function Default() {
return <Button>Button</Button>;
function Template({children, ...args}) {
return <Button {...args}>{children}</Button>;
}

export const Default = Template.bind({});

Default.args = {
children: 'Button',
};

const story = {
title: 'Button',
component: Button,
Expand Down
3 changes: 2 additions & 1 deletion src/utils/unit.js
@@ -1,5 +1,6 @@
/**
* Appends the rem unit suffix to a number
* Appends the rem unit suffix to a number.
*
* @param {number} n
* @return {string}
* @example
Expand Down

0 comments on commit 58fe7c8

Please sign in to comment.