Back to Woocommerce

README

packages/js/components/src/link/README.md

10.8.0-dev528 B
Original Source

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

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

Props

NameTypeDefaultDescription
hrefStringnull(required) The resource to link to
typeOne of: 'wp-admin', 'wc-admin', 'external''wc-admin'Type of link. For wp-admin and wc-admin, the correct prefix is appended