Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
base
/
components
/
checkbox-control
/
stories
:
index.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { text } from '@storybook/addon-knobs'; import { useState } from 'react'; /** * Internal dependencies */ import CheckboxControl from '../'; export default { title: 'WooCommerce Blocks/@base-components/CheckboxControl', component: CheckboxControl, }; export const Default = () => { const [ checked, setChecked ] = useState( false ); return ( <CheckboxControl label={ text( 'Label', 'Yes please' ) } checked={ checked } onChange={ ( value ) => setChecked( value ) } /> ); };