2021-11-16 12:33:01 +00:00
|
|
|
import { Meta, Story } from '@storybook/react';
|
|
|
|
|
2023-11-14 10:36:15 +00:00
|
|
|
import { AddButton } from './AddButton';
|
2021-11-16 12:33:01 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
component: AddButton,
|
|
|
|
title: 'Components/Buttons/AddButton',
|
|
|
|
} as Meta;
|
|
|
|
|
2023-11-14 10:36:15 +00:00
|
|
|
type Args = {
|
|
|
|
label: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
function Template({ label }: Args) {
|
|
|
|
return <AddButton>{label}</AddButton>;
|
2021-11-16 12:33:01 +00:00
|
|
|
}
|
|
|
|
|
2023-11-14 10:36:15 +00:00
|
|
|
export const Primary: Story<Args> = Template.bind({});
|
2021-11-16 12:33:01 +00:00
|
|
|
Primary.args = {
|
|
|
|
label: 'Create new container',
|
|
|
|
};
|