woocommerce/plugins/woocommerce-blocks/packages/checkout/components
Raluca Stan 858fffd697 Pass context information about parent block to the existing Slots (https://github.com/woocommerce/woocommerce-blocks/pull/5885)
* Pass context information about containing block to the existing Slots

* Fix images added to the Slots docs

* Use the parent's block name for the context prop passed to Slot fills
2022-02-22 10:33:52 +01:00
..
button Add Checkout Package and Checkout i2 Documentation (https://github.com/woocommerce/woocommerce-blocks/pull/4892) 2021-10-12 15:23:52 +01:00
checkbox-control Add Storybook documentation and remove deprecated knobs (https://github.com/woocommerce/woocommerce-blocks/pull/5407) 2021-12-21 18:08:57 +01:00
discounts-meta Pass context information about parent block to the existing Slots (https://github.com/woocommerce/woocommerce-blocks/pull/5885) 2022-02-22 10:33:52 +01:00
error-boundary Add Checkout Package and Checkout i2 Documentation (https://github.com/woocommerce/woocommerce-blocks/pull/4892) 2021-10-12 15:23:52 +01:00
label Add Checkout Package and Checkout i2 Documentation (https://github.com/woocommerce/woocommerce-blocks/pull/4892) 2021-10-12 15:23:52 +01:00
order-meta Pass context information about parent block to the existing Slots (https://github.com/woocommerce/woocommerce-blocks/pull/5885) 2022-02-22 10:33:52 +01:00
order-shipping-packages Pass context information about parent block to the existing Slots (https://github.com/woocommerce/woocommerce-blocks/pull/5885) 2022-02-22 10:33:52 +01:00
panel Remove custom `Icon` component in favour of `@wordpress/icons` where possible (https://github.com/woocommerce/woocommerce-blocks/pull/5599) 2022-02-01 16:54:38 +00:00
totals Add Storybook documentation and remove deprecated knobs (https://github.com/woocommerce/woocommerce-blocks/pull/5407) 2021-12-21 18:08:57 +01:00
totals-wrapper Styling (margin and padding) tweaks (https://github.com/woocommerce/woocommerce-blocks/pull/4974) 2021-10-20 17:02:05 +01:00
README.md Include issue submission link in the footer of all documention (.md files) (https://github.com/woocommerce/woocommerce-blocks/pull/5655) 2022-02-02 14:27:46 +00:00
index.js Move checkbox control to checkout package (https://github.com/woocommerce/woocommerce-blocks/pull/5045) 2021-11-09 16:47:46 +00:00

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!

🐞 Found a mistake, or have a suggestion? Leave feedback about this document here.