import type { Meta, StoryObj } from '@storybook/nextjs' import CopyIcon from '.' const meta = { title: 'Base/General/CopyIcon', component: CopyIcon, parameters: { docs: { description: { component: 'Interactive copy-to-clipboard glyph that swaps to a checkmark once the content has been copied. Tooltips rely on the app locale.', }, }, }, tags: ['autodocs'], args: { content: 'https://console.dify.ai/apps/12345', }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { render: args => (
Hover or click to copy the app link:
), parameters: { docs: { source: { language: 'tsx', code: `
Hover or click to copy the app link:
`.trim(), }, }, }, } export const InlineUsage: Story = { render: args => (

Use the copy icon inline with labels or metadata. Clicking the icon copies the value to the clipboard and shows a success tooltip.

Client ID acc-3f92fa
), parameters: { docs: { source: { language: 'tsx', code: ` `.trim(), }, }, }, }