> For the complete documentation index, see [llms.txt](https://neptune-css.gitbook.io/neptune-css-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://neptune-css.gitbook.io/neptune-css-docs/neptune-js/buttons.md).

# Buttons

```javascript
import { Button } from "path/to/package/neptune.min.js"
```

```javascript
const myButton = new Button({
    // Configuration
});
```

### Configuration

| Configuration  | Options                                                       |
| -------------- | ------------------------------------------------------------- |
| `parent`       | id or class of the parent element                             |
| `text`         | text                                                          |
| `icon`         | icon tag                                                      |
| `iconPosition` | left or right                                                 |
| `size`         | s, m, l                                                       |
| `style`        | primary, secondary, cta, information, success, warning, error |
