import type { ComponentMeta, ComponentStory } from '@storybook/react'; import NextImage from 'next/image'; import { Figure } from './figure'; /** * Figure - Storybook Meta */ export default { title: 'Atoms/Figure', component: Figure, args: {}, argTypes: { caption: { control: { type: 'text', }, description: 'A figure caption.', table: { category: 'Options', }, type: { name: 'string', required: false, }, }, hasBorders: { control: { type: 'boolean', }, description: 'Add borders around the figure.', table: { category: 'Styles', defaultValue: { summary: false }, }, type: { name: 'boolean', required: false, }, }, }, } as ComponentMeta; const Template: ComponentStory = (args) =>
; /** * Figure Stories - Illustration */ export const Illustration = Template.bind({}); Illustration.args = { children: ( ), }; /** * Figure Stories - BorderedIllustration */ export const BorderedIllustration = Template.bind({}); BorderedIllustration.args = { children: ( ), hasBorders: true, };