df3ff6793e
* Clean up blank lines * Update Webpack config * Update PHP logic to load block styles * Style fixes * Style fixes (II) * Style fixes (III) * Style fixes (IV) * Fix missing stylesheets in the Site Editor * Fix wrong return values in some PHP method docs * Fix missing ProductPrice stylesheet causing 404 in tests * Fix missing ProductGallery stylesheet causing 404 in tests |
||
---|---|---|
.. | ||
button | ||
checkbox-control | ||
discounts-meta | ||
error-boundary | ||
label | ||
order-local-pickup-packages | ||
order-meta | ||
order-shipping-packages | ||
panel | ||
store-notice | ||
store-notices-container | ||
text-input | ||
totals | ||
totals-wrapper | ||
validation-input-error | ||
README.md | ||
index.js |
README.md
Components
A library of components to be used for creating common UI elements shared between features of the WooCommerce Cart and Checkout Blocks.
Usage
When WooCommerce Blocks is installed and activated, these components can be accessed by importing from the blocks-checkout
package.
// Aliased import
import { Button } from '@woocommerce/blocks-checkout';
// Global import
// const { Button } = wc.blocksCheckout;
export default function MyButton() {
return <Button>Click Me!</Button>;
}
These components are here so they can be consumed by extensions.
We're hiring! Come work with us!
🐞 Found a mistake, or have a suggestion? Leave feedback about this document here.