PHP 8.2.30
Preview: link.stories.tsx Size: 898 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/design-system/src/atoms/link/link.stories.tsx

import { Meta, StoryObj } from '@storybook/react'
import React from 'react'

import { Link } from './index.js'

enum LinkVariant {
  Primary = 'primary',
  Danger = 'danger',
  Success = 'success',
  Info = 'info',
  Secondary = 'secondary',
}

enum LinkSize {
  Sm = 'sm',
  Lg = 'lg',
}

const variants = Object.values(LinkVariant)
const sizes = Object.values(LinkSize)

export const Default: StoryObj = {
  render: (props) => (
    <Link {...props} href="/">
      just a link
    </Link>
  ),
}

const meta: Meta<typeof Link> = {
  title: 'DesignSystem/Atoms/Link',
  component: Link,
  args: {
    uppercase: false,
    variant: LinkVariant.Primary,
    size: LinkSize.Sm,
  },
  argTypes: {
    uppercase: { control: { type: 'boolean' } },
    variant: { options: variants, control: { type: 'select' } },
    size: { options: sizes, control: { type: 'select' } },
  },
}

export default meta

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
27 B lrw-r--r-- 2026-02-28 00:31:46
Edit Download
898 B lrw-r--r-- 2026-02-28 00:31:58
Edit Download
2.80 KB lrw-r--r-- 2026-02-28 00:31:58
Edit Download

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