Class: Link

Link(config)

Create a new Neptune Link
Parameters:
Name Type Description
config any Add your configuration parent -> class or id of your target element, when null its document.body text -> content of your Link size -> s, m, l style -> primary, accent, information, success, warning, error title -> add the title href -> add the href
Source:
Example
const myLink = new Link({
 parent: "#container",
 text: "My Link",
 size: "m",
 style: "primary",
 title: "My Link",
 href: "https://de.wikipedia.org/"
});