import type { Meta, StoryObj } from '@storybook/nextjs'
import ShareQRCode from '.'
const QRDemo = ({
content = 'https://dify.ai',
}: {
content?: string
}) => {
return (
Share QR
Generated URL:
{content}
)
}
const meta = {
title: 'Base/Data Display/QRCode',
component: QRDemo,
parameters: {
layout: 'centered',
docs: {
description: {
component: 'Toggleable QR code generator for sharing app URLs. Clicking the trigger reveals the code with a download CTA.',
},
},
},
argTypes: {
content: {
control: 'text',
},
},
args: {
content: 'https://dify.ai',
},
tags: ['autodocs'],
} satisfies Meta
export default meta
type Story = StoryObj
export const Playground: Story = {}
export const DemoLink: Story = {
args: {
content: 'https://dify.ai/docs',
},
}