import type { Meta, StoryObj } from '@storybook/nextjs' import PremiumBadge from '.' const colors: Array['color']>> = ['blue', 'indigo', 'gray', 'orange'] const PremiumBadgeGallery = ({ size = 'm', allowHover = false, }: { size?: 's' | 'm' allowHover?: boolean }) => { return (

Brand badge variants

{colors.map(color => (
Premium {color}
))}
) } const meta = { title: 'Base/General/PremiumBadge', component: PremiumBadgeGallery, parameters: { layout: 'centered', docs: { description: { component: 'Gradient badge used for premium features and upsell prompts. Hover animations can be toggled per instance.', }, }, }, argTypes: { size: { control: 'radio', options: ['s', 'm'], }, allowHover: { control: 'boolean' }, }, args: { size: 'm', allowHover: false, }, tags: ['autodocs'], } satisfies Meta export default meta type Story = StoryObj export const Playground: Story = {} export const HoverEnabled: Story = { args: { allowHover: true, }, }