mirror of
https://github.com/ruisaraiva19/favycon.git
synced 2026-09-14 11:06:21 +05:00
* feat: upgrade dependencies * chore: update linter and CI workflows * chore: upgrade browserslist
23 lines
539 B
TypeScript
23 lines
539 B
TypeScript
import { ComponentMeta, Story } from '@storybook/react'
|
|
import { Checkbox, CheckboxProps } from '.'
|
|
import { Typography } from 'components/typography'
|
|
|
|
export default {
|
|
title: 'Checkbox',
|
|
component: Checkbox,
|
|
} as ComponentMeta<typeof Checkbox>
|
|
|
|
const Template: Story<CheckboxProps> = (args) => (
|
|
<Checkbox {...args}>
|
|
<Typography variant="regularBody" weight="medium" muted={args.disabled}>
|
|
Test Checkbox
|
|
</Typography>
|
|
</Checkbox>
|
|
)
|
|
|
|
export const Desktop = Template.bind({})
|
|
Desktop.args = {
|
|
name: 'Desktop',
|
|
id: 'desktop',
|
|
}
|