|
1 | | -import type { Meta, StoryObj } from '@storybook/react' |
2 | | -import { Link } from '../../components/link' |
| 1 | +import type { Meta, StoryObj } from '@storybook/react-vite' |
| 2 | +import { Typography } from '../../components/typography' |
3 | 3 |
|
4 | | -const meta = { |
5 | | - title: 'Typography/Link', |
6 | | - component: Link, |
| 4 | +const meta: Meta<typeof Typography> = { |
| 5 | + title: 'Typography/Typography', |
| 6 | + component: Typography, |
7 | 7 | parameters: { |
| 8 | + docs: { |
| 9 | + description: { |
| 10 | + component: |
| 11 | + 'Project typography primitives (h1–h4, p, blockquote, small, lead, large). Use the `textColor` prop for muted text.', |
| 12 | + }, |
| 13 | + }, |
8 | 14 | layout: 'centered', |
| 15 | + design: { |
| 16 | + type: 'figma', |
| 17 | + url: 'https://www.figma.com/design/dSsI9L6NSpNCorbSdiYd1k/Oasis-Design-System---shadcn-ui---Default---December-2024?node-id=473-1978', |
| 18 | + }, |
9 | 19 | }, |
10 | 20 | tags: ['autodocs'], |
11 | 21 | argTypes: { |
12 | 22 | variant: { |
13 | 23 | control: 'select', |
14 | | - options: ['default', 'underline', 'hover'], |
15 | | - description: 'The visual style variant of the link', |
| 24 | + options: ['h1', 'h2', 'h3', 'h4', 'p', 'blockquote', 'lead', 'large', 'small'], |
16 | 25 | }, |
17 | 26 | textColor: { |
18 | 27 | control: 'select', |
19 | | - options: ['primary', 'inherit'], |
20 | | - description: 'The text color scheme of the link', |
21 | | - defaultValue: 'primary', |
22 | | - }, |
23 | | - asChild: { |
24 | | - control: 'boolean', |
25 | | - description: 'When true, renders the child component with Link styles and props merged.', |
26 | | - }, |
27 | | - className: { |
28 | | - control: 'text', |
29 | | - description: 'Additional CSS classes for custom styling', |
| 28 | + options: [undefined, 'muted'], |
| 29 | + description: 'Optional text color override (e.g., muted).', |
30 | 30 | }, |
| 31 | + asChild: { control: 'boolean' }, |
| 32 | + className: { control: 'text' }, |
| 33 | + children: { control: 'text' }, |
| 34 | + }, |
| 35 | + args: { |
| 36 | + variant: 'p', |
| 37 | + textColor: undefined, |
| 38 | + children: 'The quick brown fox jumps over the lazy dog.', |
31 | 39 | }, |
32 | | -} satisfies Meta<typeof Link> |
| 40 | +} |
33 | 41 |
|
34 | 42 | export default meta |
35 | 43 | type Story = StoryObj<typeof meta> |
36 | 44 |
|
37 | | -export const Default: Story = { |
38 | | - args: { |
39 | | - children: 'Oasis Explorer', |
40 | | - href: '#', |
41 | | - textColor: 'primary', |
42 | | - }, |
43 | | -} |
| 45 | +export const Default: Story = {} |
0 commit comments