import type { Meta, StoryObj } from '@storybook/react' import { SvgCheck, SvgClipboardAdd } from '@chainlink/blocks-icons' import { CopyRoot, CopyTrigger } from './CopyPrimitive' export default { title: 'Blocks/Copy/CopyPrimitive', component: CopyRoot, argTypes: { text: { control: 'text', description: 'The text to copy to the clipboard.', }, }, args: { text: 'Hello, World!', }, } satisfies Meta type Story = StoryObj export const Default: Story = { render: (args) => ( {args.text} ), } export const WithTruncatedAddress: Story = { render: (args) => ( 0x1234...abcd ), args: { text: '0x123456789abcdef0123456789abcdef01234567', }, } export const CustomIcons: Story = { render: (args) => ( } copiedIcon={} /> ), args: { text: 'Custom icons example', }, } export const StandaloneTrigger: Story = { name: 'Standalone CopyTrigger', render: (_args) => (
Standalone trigger:
), }