2022-06-09 15:52:19 +00:00
# Components <!-- omit in toc -->
2021-10-12 14:23:52 +00:00
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.
2022-06-09 15:52:19 +00:00
```ts
2021-10-12 14:23:52 +00:00
// 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.
2022-02-02 14:27:46 +00:00
<!-- FEEDBACK -->
2022-06-09 12:43:17 +00:00
2022-02-02 14:27:46 +00:00
---
[We're hiring! ](https://woocommerce.com/careers/ ) Come work with us!
2022-08-01 08:56:28 +00:00
🐞 Found a mistake, or have a suggestion? [Leave feedback about this document here. ](https://github.com/woocommerce/woocommerce-blocks/issues/new?assignees=&labels=type%3A+documentation&template=--doc-feedback.md&title=Feedback%20on%20./packages/checkout/components/README.md )
2022-06-09 12:43:17 +00:00
2022-02-02 14:27:46 +00:00
<!-- /FEEDBACK -->
2023-08-22 09:51:18 +00:00