woocommerce/plugins/woocommerce-admin/client/activity-panel/activity-header
Patricia Hillebrandt 5dd7713346
[Performance]: Replace `classnames` usage with `clsx` (#47760)
* Replace classnames with clsx within woocommerce-blocks.

* Undo unnecessary change to getClassnames const.

* Replace classnames with clsx within woocommerce-admin.

* Add changelog.

* Update the pnpm lock file

* Address lint.

* Address lint errors for the block-library.
2024-05-31 05:49:36 +02:00
..
README.md Migrate header items to slot fills (https://github.com/woocommerce/woocommerce-admin/pull/7805) 2021-12-14 11:56:42 -05:00
index.js [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
style.scss Stylelint: Update config to double quotes (#45607) 2024-03-26 10:41:34 -03:00

README.md

ActivityHeader

A component designed for use in the activity panel. It returns a title and can optionally also include a component like dropdown or Ellipsis menu.

How to use:

import ActivityHeader from 'layout/activity-panel/activity-header';

render: function() {
  return (
    <ActivityHeader
      title="Reviews"
    />
  );
}

Props

  • title: A title for this card (required).
  • className: Additional class names.
  • menu: A dropdown menu (EllipsisMenu) shown at the top-right of the card.