import React from 'react' import { type Meta, type StoryObj } from '@storybook/react-vite' import Pill, { pillColorList } from './Pill' import { DocsTemplate } from '../../../.storybook' const meta: Meta = { title: 'Components/Pill', component: Pill, parameters: { design: { type: 'figma', url: 'https://www.figma.com/design/RvhKD82948FMQnh5MyCi0o/Web-Design-System?node-id=121-334&t=CdMnrLNv0lNFwXr0-0', }, docs: { page: () => ( The Pill component is a small, pill-shaped design element that displays a numerical value. It is commonly used to highlight counts, quantities, or metrics in a visually prominent and compact format. The Pill's concise presentation makes it ideal for conveying essential information at a glance, adding emphasis to important data points within the interface. } infoBullets={[ Utilize different color variations for the Pill to represent various states, such as success, warning, or error, based on the associated data. , ]} /> ), }, controls: { sort: 'requiredFirst' }, }, } export default meta type Story = StoryObj const Template: Story = { render: (args) => { return }, } export const Basic: Story = { ...Template, args: { color: 'red', number: 32, }, } const AllTemplate: Story = { render: () => { return (
{pillColorList.map((pillColor) => ( ))}
) }, } export const AllVariations: Story = { ...AllTemplate, args: {}, }