woocommerce/plugins/woocommerce-admin/packages/components/src/link
Joshua T Flowers 0bc842f7c3 Allow default link behavior when cmd or ctrl are used (https://github.com/woocommerce/woocommerce-admin/pull/5966)
* Allow default link behavior when cmd or ctrl are used

* Convert Link to functional component

* Add alt and shift keys
2020-12-29 11:13:20 -05:00
..
stories Add support for List item tags and link types (https://github.com/woocommerce/woocommerce-admin/pull/4287) 2020-05-07 11:52:49 -04:00
test QuickLinks: Prevent jsdom "Error: Not implemented: navigation" test output (https://github.com/woocommerce/woocommerce-admin/pull/4547) 2020-06-11 07:58:09 -04:00
README.md Fetch component usage documentation from local README.md. 2019-09-06 11:52:18 -07:00
index.js Allow default link behavior when cmd or ctrl are used (https://github.com/woocommerce/woocommerce-admin/pull/5966) 2020-12-29 11:13:20 -05:00

README.md

Link

Use Link to create a link to another resource. It accepts a type to automatically create wp-admin links, wc-admin links, and external links.

Usage

<Link
	href="edit.php?post_type=shop_coupon"
	type="wp-admin"
>
	Coupons
</Link>

Props

Name Type Default Description
href String null (required) The resource to link to
type One of: 'wp-admin', 'wc-admin', 'external' 'wc-admin' Type of link. For wp-admin and wc-admin, the correct prefix is appended