@navinc/base-react-components
Version:
Nav's Pattern Library
32 lines (28 loc) • 580 B
JavaScript
import React from 'react'
import Checkbox from './checkbox.js'
import readme from './checkbox.readme.md'
export default {
title: 'Form Elements/Checkbox',
component: Checkbox,
parameters: {
readme: { content: readme },
},
}
export const Basic = (args) => <Checkbox {...args} />
Basic.argTypes = {
size: {
type: 'select',
options: ['sm', 'md'],
},
}
Basic.args = {
checkedBackgroundColor: 'pink',
label: 'pick me',
checked: false,
disabled: false,
isInvalid: false,
errors: [],
hasBorder: false,
hasSpaceForErrors: false,
size: 'md',
}