woocommerce/plugins/woocommerce-admin/client/layout/activity-panel/activity-outbound-link
Albert Juhé Lluveras 8932f99038 Add fallback gutter for browsers that don't support CSS Custom properties (https://github.com/woocommerce/woocommerce-admin/pull/372) 2018-09-11 09:27:13 +02:00
..
README.md Add Activity Panel Outbound Link Component (https://github.com/woocommerce/woocommerce-admin/pull/213) 2018-07-17 14:51:56 -04:00
index.js Components: Export reusable components to a separate file + global (https://github.com/woocommerce/woocommerce-admin/pull/297) 2018-08-20 17:18:13 -04:00
style.scss Add fallback gutter for browsers that don't support CSS Custom properties (https://github.com/woocommerce/woocommerce-admin/pull/372) 2018-09-11 09:27:13 +02:00

README.md

ActivityOutboundLink

ActivityOutboundLink creates a styled link for use in the Activity Panel.

How to use:

import ActivityOutboundLink from 'layout/activity-panel/activity-outbound-link';

render: function() {
  return (
	<ActivityOutboundLink
		href="edit.php?post_type=shop_coupon"
		type="wp-admin"
	>
		Coupons
	</ActivityOutboundLink>
  );
}

Props

  • href (required): The resource to link to.
  • type (required): Type of link. For wp-admin and wc-admin, the correct prefix is appended. Accepts: wc-admin, wp-admin, external.