import { Meta, StoryObj } from '@storybook/react-webpack5'; import { fn } from 'storybook/test'; import PrimitiveAnchor from '..'; const meta: Meta = { component: PrimitiveAnchor, title: 'Primitives/Anchor', tags: ['!manifest'], args: { children: 'Click me', href: 'https://example.com', onClick: fn(), onBlur: fn(), onFocus: fn(), onKeyDown: fn(), onMouseEnter: fn(), onMouseLeave: fn(), }, }; export default meta; type Story = StoryObj; export const Basic: Story = {}; export const WithLongName: Story = { args: { children: 'Anchor with a really long name', }, }; export const WithCustomClass: Story = { args: { className: 'custom-class', }, decorators: [ (Story) => (
), ], }; export const WithTargetBlank: Story = { args: { target: '_blank', }, }; export const WithRelNoopener: Story = { args: { rel: 'noopener noreferrer', }, }; export const WithCustomStyle: Story = { args: { style: { color: 'red' }, }, }; export const Disabled: Story = { args: { disabled: true, }, };