Discount Ninja
Search
K
Comment on page

Link

Attributes

url (string)
  • The URL that the hyperlink points to.
open-in-context (boolean)
  • true [default]: opens the link in the current browsing context, i.e. the same tab of the browser
  • false: usually opens the link in a new tab, but users can configure browsers to open a new window instead

Example

<la-dn-link url="/collections/collection-1">
new products
</la-dn-link>
<la-dn-link url="/collections/collection-1" open-in-context="false">
terms & conditions
</la-dn-link>