woocommerce/plugins/woocommerce-admin/client/marketing/components/card
Joshua T Flowers bc998444a3 Future proof experimental components (https://github.com/woocommerce/woocommerce-admin/pull/5961)
* Possibly use safe Text component

* Possibly use safe navigation components

* Add experimental package

* Update components to import from woocommerce/experimental

* Make experimental package private

* Reference experimental package relatively

* Update packages/experimental/README.md

Co-authored-by: Paul Sealock <psealock@gmail.com>

* Update packages/experimental/CHANGELOG.md

Co-authored-by: Paul Sealock <psealock@gmail.com>

* Update history state instead of mocking getQuery in tests

* Handle PR feedback

* Create excluded externals array and return early

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-01-07 18:57:09 -05:00
..
test Convert the marketing tab cards to use the new @wordpress/components Card component. (https://github.com/woocommerce/woocommerce-admin/pull/5428) 2020-10-23 14:41:45 +08:00
README.md Convert the marketing tab cards to use the new @wordpress/components Card component. (https://github.com/woocommerce/woocommerce-admin/pull/5428) 2020-10-23 14:41:45 +08:00
index.js Future proof experimental components (https://github.com/woocommerce/woocommerce-admin/pull/5961) 2021-01-07 18:57:09 -05:00
style.scss Convert the marketing tab cards to use the new @wordpress/components Card component. (https://github.com/woocommerce/woocommerce-admin/pull/5428) 2020-10-23 14:41:45 +08:00

README.md

Card

This component is a simple wrapper around the Card component from @wordpress/components. It supports title and description props to be displayed in the card header.

Usage

<Card
  title="Title"
  description="Description goes here."
  className="className"
>
  <div>
    Any card content goes here.
  </div>
</Card>