mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
30 lines
565 B
TypeScript
30 lines
565 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
|
|
import Chip from '.';
|
|
|
|
const meta = {
|
|
title: 'Chip',
|
|
component: Chip,
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
tags: ['autodocs'],
|
|
argTypes: {
|
|
color: { options: ['primary', 'secondary', 'tertiary'] },
|
|
text: { control: 'text' },
|
|
variant: { options: ['outlined', 'filled'] },
|
|
},
|
|
} satisfies Meta<typeof Chip>;
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Example: Story = {
|
|
args: {
|
|
color: 'primary',
|
|
text: 'Hello, World!',
|
|
variant: 'filled'
|
|
},
|
|
};
|