Files
protocol/sites/dev0x-portal/stories/BinaryLinkButton.stories.tsx
2023-03-02 11:42:29 +01:00

46 lines
1.0 KiB
TypeScript

import type { Meta, StoryObj } from '@storybook/react';
import { BinaryLinkButton } from '../app/components/BinaryLinkButton';
const meta: Meta<typeof BinaryLinkButton> = {
title: 'Components/BinaryLinkButton',
component: BinaryLinkButton,
tags: ['autodocs'],
args: {
active: 'left',
states: {
left: {
label: 'Left',
url: '#',
},
right: {
label: 'Right',
url: '#',
},
},
render: undefined,
},
};
export default meta;
type Story = StoryObj<typeof BinaryLinkButton>;
export const Normal: Story = {
args: {
active: 'left',
states: {
left: {
label: 'Left',
url: '#',
},
right: {
label: 'Right',
url: '#',
},
},
render(sideProps) {
return <span {...sideProps}>{sideProps.label}</span>;
},
},
};