61e5a4c55e
* Move components * Main index for docs * Block registry documentation * filter registry docs * Utility docs * Doc for components * Link to package docs * fix import |
||
---|---|---|
.. | ||
button | ||
discounts-meta | ||
error-boundary | ||
label | ||
order-meta | ||
order-shipping-packages | ||
panel | ||
totals | ||
totals-wrapper | ||
README.md | ||
index.js |
README.md
Checkout - Components
A library of components to be used for creating common UI elements shared between features of the WooCommerce Cart and Checkout Blocks.
Table of Contents
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!