46 lines
1.0 KiB
TypeScript
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>;
|
|
},
|
|
},
|
|
};
|