import React from 'react' import { type Meta, type StoryObj } from '@storybook/react-vite' import MdashCheck from './MdashCheck' import { DocsTemplate } from '../../../.storybook' const meta: Meta = { title: 'Components/Text/Mdash/MdashCheck', component: MdashCheck, parameters: { docs: { page: () => ( The MdashCheck conditionally renders its children or an em dash (—) based on the check prop. } /> ), }, }, } export default meta type Story = StoryObj const Template: Story = { render: (args) => { return (
Value: {args.check ? 'true' : 'false'} Content Here
) }, } export const Basic: Story = { ...Template, args: { check: true, }, } export const CheckIsFalse: Story = { ...Template, args: { check: false, }, }