Preview: label.stories.tsx
Size: 1.11 KB
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/design-system/src/atoms/label/label.stories.tsx
/* eslint-disable react/jsx-closing-tag-location */
import { Meta, StoryObj } from '@storybook/react'
import React from 'react'
import StoryWrapper from '../../utils/story-wrapper.jsx'
import { Box } from '../index.js'
import { Label } from './index.js'
const variants = ['primary', 'danger', 'success', 'info', 'secondary'] as const
export const Default: StoryObj = {
render: (args) => (
<Box width={1}>
<StoryWrapper label="Label">
<Label {...args}>Example label</Label>
</StoryWrapper>
</Box>
),
}
const meta: Meta<typeof Label> = {
title: 'DesignSystem/Atoms/Label',
component: Label,
args: {
required: false,
uppercase: false,
disabled: false,
inline: false,
variant: 'default',
size: 'default',
},
argTypes: {
required: { control: { type: 'boolean' } },
uppercase: { control: { type: 'boolean' } },
disabled: { control: { type: 'boolean' } },
inline: { control: { type: 'boolean' } },
variant: { options: variants, control: { type: 'select' } },
size: { options: ['default', 'lg'], control: { type: 'select' } },
},
}
export default meta
Directory Contents
Dirs: 0 × Files: 3