1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
import type { Meta, StoryObj } from '@storybook/react';
import { Link } from '../../../atoms';
import { MetaItem } from './meta-item';
const meta = {
component: MetaItem,
title: 'Molecules/MetaList/Item',
} satisfies Meta<typeof MetaItem>;
export default meta;
type Story = StoryObj<typeof meta>;
export const SingleValue: Story = {
args: {
label: 'Comments',
value: 'No comments',
},
};
export const MultipleValues: Story = {
args: {
label: 'Tags',
value: [
{ id: 'tag1', value: <Link href="#tag1">Tag 1</Link> },
{ id: 'tag2', value: <Link href="#tag2">Tag 2</Link> },
],
},
};
export const SingleValueBordered: Story = {
args: {
hasBorderedValues: true,
label: 'Comments',
value: 'No comments',
},
};
export const MultipleValuesBordered: Story = {
args: {
hasBorderedValues: true,
label: 'Tags',
value: [
{ id: 'tag1', value: <Link href="#tag1">Tag 1</Link> },
{ id: 'tag2', value: <Link href="#tag2">Tag 2</Link> },
],
},
};
export const SingleValueInlined: Story = {
args: {
isInline: true,
label: 'Comments',
value: 'No comments',
},
};
export const MultipleValuesInlined: Story = {
args: {
isInline: true,
label: 'Tags',
value: [
{ id: 'tag1', value: <Link href="#tag1">Tag 1</Link> },
{ id: 'tag2', value: <Link href="#tag2">Tag 2</Link> },
],
},
};
export const InlinedValues: Story = {
args: {
hasInlinedValues: true,
label: 'Tags',
value: [
{ id: 'tag1', value: <Link href="#tag1">Tag 1</Link> },
{ id: 'tag2', value: <Link href="#tag2">A long tag 2</Link> },
{ id: 'tag3', value: <Link href="#tag3">Tag 3</Link> },
],
},
};
|