|
- import * as React from 'react';
- import type { Meta } from '@storybook/react';
- import { Badge as Component, BadgeProps as Props } from '.';
-
- const meta: Meta<typeof Component> = {
- component: Component,
- argTypes: {
- children: {
- control: {
- type: 'text',
- },
- },
- },
- args: {
- ...(Component.defaultProps ?? {}),
- },
- };
-
- export const Badge = (args: Omit<Props, 'ref'>) => (
- <Component
- {...args}
- />
- );
-
- export default meta;
|