new Badge(config)
Create a new Neptune Badge
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 badge size -> s, m, l style -> primary, accent, information, success, warning, error |
- Source:
Example
const myBadge = new Badge({
parent: "#container",
text: "My Badge",
size: "m",
style: "primary"
});