aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/figure/figure.stories.tsx
blob: ece08b7e844e895ed30ecd8bd28b96db68529feb (plain)
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
import type { Meta, StoryObj } from '@storybook/react';
import NextImage from 'next/image';
import { Figure } from './figure';

const meta = {
  component: Figure,
  title: 'Atoms/Figure',
} satisfies Meta<typeof Figure>;

export default meta;

type Story = StoryObj<typeof meta>;

export const Default: Story = {
  args: {
    children: (
      <NextImage
        alt="An example"
        height={480}
        src="https://picsum.photos/640/480"
        width={640}
      />
    ),
  },
};

export const Bordered: Story = {
  args: {
    children: (
      <NextImage
        alt="An example"
        height={480}
        src="https://picsum.photos/640/480"
        width={640}
      />
    ),
    hasBorders: true,
  },
};