import type { Meta, StoryObj } from '@storybook/nextjs' import { useState } from 'react' import CopyFeedback, { CopyFeedbackNew } from '.' const meta = { title: 'Base/Feedback/CopyFeedback', component: CopyFeedback, parameters: { docs: { description: { component: 'Copy-to-clipboard button that shows instant feedback and a tooltip. Includes the original ActionButton wrapper and the newer ghost-button variant.', }, }, }, tags: ['autodocs'], args: { content: 'acc-3f92fa', }, } satisfies Meta export default meta type Story = StoryObj const CopyDemo = ({ content }: { content: string }) => { const [value] = useState(content) return (
Client ID: {value}
Use the new ghost variant:
) } export const Playground: Story = { render: args => , parameters: { docs: { source: { language: 'tsx', code: ` `.trim(), }, }, }, }