PHP 8.2.30
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

Name Size Perms Modified Actions
28 B lrw-r--r-- 2026-02-28 00:31:46
Edit Download
1.11 KB lrw-r--r-- 2026-02-28 00:31:56
Edit Download
4.14 KB lrw-r--r-- 2026-02-28 00:31:58
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).