Skip to content

Commit 3846d4c

Browse files
Uzhastin-Nikitathe-homeless-god
authored andcommitted
feat: add button stories for storybook
1 parent 2da788b commit 3846d4c

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from 'react'
2+
3+
import { ComponentStory, ComponentMeta } from '@storybook/react'
4+
5+
import { Button, ButtonProps } from './Button'
6+
7+
export default {
8+
title: 'atoms/Button',
9+
component: Button
10+
} as ComponentMeta<React.ComponentType<ButtonProps>>
11+
12+
const Template: ComponentStory<React.ComponentType<ButtonProps>> = args => <Button {...args} />
13+
14+
export const Primary = Template.bind({})
15+
Primary.args = {}

src/components/atoms/Button/Button.styles.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '@digitable-team/web-ui-components/src/scss/mixins';
1+
@import 'src/scss/mixins';
22

33
.primary {
44
border: 1px solid $color-white;

src/components/atoms/ColorTexts/ColorTexts.stories.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)