2021-12-21 17:08:57 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2022-11-02 16:46:14 +00:00
|
|
|
import type { Story, Meta } from '@storybook/react';
|
2021-12-21 17:08:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import CheckboxControl, { CheckboxControlProps } from '..';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'WooCommerce Blocks/Checkout Blocks/CheckboxControl',
|
|
|
|
component: CheckboxControl,
|
|
|
|
args: {
|
|
|
|
instanceId: 'my-checkbox-id',
|
|
|
|
label: 'Check me out',
|
|
|
|
},
|
|
|
|
} as Meta< CheckboxControlProps >;
|
|
|
|
|
|
|
|
const Template: Story< CheckboxControlProps > = ( args ) => (
|
|
|
|
<CheckboxControl { ...args } />
|
|
|
|
);
|
|
|
|
|
|
|
|
export const Default = Template.bind( {} );
|
|
|
|
Default.args = {};
|