Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
packages
/
checkout
/
totals
/
item
/
stories
:
index.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { text } from '@storybook/addon-knobs'; import { currencyKnob } from '@woocommerce/knobs'; /** * Internal dependencies */ import TotalsItem from '../'; export default { title: 'WooCommerce Blocks/@blocks-checkout/TotalsItem', component: TotalsItem, }; export const Default = () => { const currency = currencyKnob(); const description = text( 'Description', 'This is the amount that will be charged to your card.' ); const label = text( 'Label', 'Amount' ); const value = text( 'Value', '1000' ); return ( <TotalsItem currency={ currency } description={ description } label={ label } value={ value } /> ); };