Skip to content

Commit

Permalink
feat: add button stories for storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzhastin-Nikita authored and the-homeless-god committed May 26, 2022
1 parent 2da788b commit 3846d4c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
15 changes: 15 additions & 0 deletions src/components/atoms/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react'

import { ComponentStory, ComponentMeta } from '@storybook/react'

import { Button, ButtonProps } from './Button'

export default {
title: 'atoms/Button',
component: Button
} as ComponentMeta<React.ComponentType<ButtonProps>>

const Template: ComponentStory<React.ComponentType<ButtonProps>> = args => <Button {...args} />

export const Primary = Template.bind({})
Primary.args = {}
2 changes: 1 addition & 1 deletion src/components/atoms/Button/Button.styles.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@digitable-team/web-ui-components/src/scss/mixins';
@import 'src/scss/mixins';

.primary {
border: 1px solid $color-white;
Expand Down
15 changes: 0 additions & 15 deletions src/components/atoms/ColorTexts/ColorTexts.stories.tsx

This file was deleted.

0 comments on commit 3846d4c

Please sign in to comment.