0bc842f7c3
* Allow default link behavior when cmd or ctrl are used * Convert Link to functional component * Add alt and shift keys |
||
---|---|---|
.. | ||
stories | ||
test | ||
README.md | ||
index.js |
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 |