Class: Button

Button(config)

new Button(config)

Create a new Neptune Button
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 Button icon -> add the i tag of your icon iconPosition -> left or right size -> s, m, l style -> primary, secondary, cta, information, success, warning, error
Source:
Example
const myButton = new Button({
 parent: "#container",
 text: "My Button",
 size: "m",
 style: "primary"
});