|
1 |
| -import type { StoryObj } from '@storybook/react'; |
| 1 | +import type { Meta, StoryObj } from '@storybook/react'; |
2 | 2 |
|
3 | 3 | import { FlairIcon, Icon } from '../src';
|
4 | 4 |
|
5 |
| -export default { |
| 5 | +const meta: Meta<typeof FlairIcon> = { |
6 | 6 | component: FlairIcon,
|
7 | 7 | title: 'Foundations/Icons/FlairIcon',
|
8 |
| - description: |
9 |
| - 'Flair icons can be used as either square or circular icons with gradient backgrounds.', |
10 | 8 | parameters: {
|
11 | 9 | status: {
|
12 | 10 | type: import.meta.env.STORYBOOK_PACKAGE_STATUS__ICONS,
|
13 | 11 | },
|
14 | 12 | },
|
15 | 13 | };
|
16 | 14 |
|
| 15 | +export default meta; |
| 16 | + |
17 | 17 | type Story = StoryObj<typeof FlairIcon>;
|
18 | 18 |
|
19 |
| -export const Circular: Story = { |
20 |
| - args: { children: <Icon name="flag" />, isRounded: true }, |
| 19 | +export const Square: Story = { |
| 20 | + args: { children: <Icon name="flag" />, borderRadius: '0' }, |
21 | 21 | };
|
22 | 22 |
|
23 | 23 | export const BlueToPurple: Story = {
|
24 |
| - args: { children: <Icon name="shield-key" />, gradient: 'purpleToBlue' }, |
| 24 | + args: { children: <Icon name="shield-key" /> }, |
25 | 25 | };
|
26 | 26 |
|
27 | 27 | export const YellowToCyan: Story = {
|
28 |
| - args: { children: <Icon name="arrow-up-right-circle" />, gradient: 'yellowToCyan' }, |
| 28 | + args: { children: <Icon name="arrow-up-right-circle" />, background: '$yellow-cyan' }, |
29 | 29 | };
|
30 | 30 |
|
31 | 31 | export const PinkToPurple: Story = {
|
32 |
| - args: { children: <Icon name="flask" />, gradient: 'pinkToPurple' }, |
| 32 | + args: { children: <Icon name="flask" />, background: '$pink-purple' }, |
33 | 33 | };
|
34 | 34 |
|
35 | 35 | export const CyanToBlue: Story = {
|
36 |
| - args: { children: <Icon name="a-to-b" />, gradient: 'cyanToBlue' }, |
| 36 | + args: { children: <Icon name="a-to-b" />, background: '$cyan-blue' }, |
37 | 37 | };
|
38 | 38 |
|
39 | 39 | export const CyanToPurple: Story = {
|
40 |
| - args: { children: <Icon name="warning" />, gradient: 'cyanToPurple' }, |
| 40 | + args: { children: <Icon name="warning" />, background: '$cyan-purple' }, |
41 | 41 | };
|
0 commit comments