import type { Meta, StoryObj } from '@storybook/nextjs' import { Code } from './Code' const meta = { component: Code, parameters: { layout: 'centered', }, tags: ['autodocs'], argTypes: { variant: { control: 'select', options: ['default', 'primary'], description: 'The color variant of the code badge', }, style: { control: 'select', options: ['outline', 'fill'], description: 'The visual style of the code badge', }, size: { control: 'select', options: ['sm', 'md', 'lg'], description: 'The size of the code badge', }, children: { control: 'text', description: 'The text content to display', }, }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { args: { children: 'main', variant: 'default', size: 'md', }, } export const Primary: Story = { args: { children: 'production', variant: 'primary', size: 'md', }, } export const Small: Story = { args: { children: 'feature/new', variant: 'default', size: 'sm', }, } export const Large: Story = { args: { children: 'develop', variant: 'default', size: 'lg', }, } export const AllVariants: Story = { args: { children: 'example', }, render: () => (

Outline Style

main main main
main main main

Fill Style

main main main
main main main
), }