portainer/app/react/components/buttons/AddButton.stories.tsx

22 lines
409 B
TypeScript

import { Meta, Story } from '@storybook/react';
import { AddButton } from './AddButton';
export default {
component: AddButton,
title: 'Components/Buttons/AddButton',
} as Meta;
type Args = {
label: string;
};
function Template({ label }: Args) {
return <AddButton>{label}</AddButton>;
}
export const Primary: Story<Args> = Template.bind({});
Primary.args = {
label: 'Create new container',
};