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
/
quantity-selector
/
stories
:
index.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { boolean } from '@storybook/addon-knobs'; import { useState } from 'react'; /** * Internal dependencies */ import QuantitySelector from '../'; export default { title: 'WooCommerce Blocks/@base-components/QuantitySelector', component: QuantitySelector, }; export const Default = () => { const [ quantity, changeQuantity ] = useState(); return ( <div style={ { width: 100 } }> <QuantitySelector disabled={ boolean( 'Disabled', false ) } quantity={ quantity } onChange={ changeQuantity } itemName="widgets" /> </div> ); };