woocommerce/plugins/woocommerce-admin/packages/components/src/order-status
Sam Seay fc030fb007 Migrate the devdocs examples to Storybook CSF stories (https://github.com/woocommerce/woocommerce-admin/pull/5271)
Fixes woocommerce/woocommerce-admin#5234
2020-10-15 14:55:55 +13:00
..
stories Migrate the devdocs examples to Storybook CSF stories (https://github.com/woocommerce/woocommerce-admin/pull/5271) 2020-10-15 14:55:55 +13:00
README.md Decouple wcSettings from published packages. (https://github.com/woocommerce/woocommerce-admin/pull/3001) 2019-10-11 11:45:45 -04:00
index.js jsDoc: Fix errors (https://github.com/woocommerce/woocommerce-admin/pull/4985) 2020-08-18 09:36:24 +12:00
style.scss Update @wordpress/base-styles and replace deprecated variables (https://github.com/woocommerce/woocommerce-admin/pull/4759) 2020-07-17 12:11:42 +12:00

README.md

OrderStatus

Use OrderStatus to display a badge with human-friendly text describing the current order status.

Usage

const order = { status: 'processing' }; // Use a real WooCommerce Order here.

<OrderStatus order={ order } />

Props

Name Type Default Description
order Object null (required) The order to display a status for. See: https://woocommerce.github.io/woocommerce-rest-api-docs/#order-properties
className String null Additional CSS classes
orderStatusMap Object {} A map of order status to human-friendly label.