Skip to content

Commit

Permalink
feat: storibook - default template
Browse files Browse the repository at this point in the history
  • Loading branch information
Arucard89 committed Jan 14, 2024
1 parent bb1d7bd commit 72a830b
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/components/Slider/__stories__/Slider.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,9 @@ import {Slider} from '../Slider';
import type {SliderProps} from '../sliderTypes';

export default {
title: 'Components/Slider',
title: 'Components/Inputs/Slider',
component: Slider,
} as Meta;

const DefaultTemplate: StoryFn<SliderProps> = (args) => <Slider {...args} onChange={console.log} />;
const DefaultTemplate: StoryFn<SliderProps> = (args) => <Slider {...args} />;
export const Default = DefaultTemplate.bind({});

const SizeTemplate: StoryFn<SliderProps> = (args) => (
<div>
s: <Slider {...args} size="s" />
<span style={{margin: '16px'}} />
m: <Slider {...args} size="m" />
<span style={{margin: '16px'}} />
l: <Slider {...args} size="l" />
<span style={{margin: '16px'}} />
xl: <Slider {...args} size="xl" />
</div>
);
export const Size = SizeTemplate.bind({});

0 comments on commit 72a830b

Please sign in to comment.