1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 21:39:40 +02:00
portainer/app/react/components/buttons/AddButton.stories.tsx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
424 B
TypeScript
Raw Normal View History

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 data-cy="add-">{label}</AddButton>;
}
export const Primary: Story<Args> = Template.bind({});
Primary.args = {
label: 'Create new container',
};