# @bulma-web/button

> A bulma.io based web-component button

Latest version **0.6.3** (published 2020-06-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bulma-web/button
pnpm add @bulma-web/button
yarn add @bulma-web/button
bun add @bulma-web/button
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.3 |
| Published | 2020-06-26 |
| First published | 2019-09-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 135.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | bulma-web |
| Maintainers | ramon92 |
| Keywords | web-components, button, bulma-web, bulma |

## Links

- npm: https://www.npmjs.com/package/@bulma-web/button
- Repository: https://github.com/Ramon92/bulma-web
- Homepage: https://github.com/Ramon92/bulma-web#readme
- Issues: https://github.com/Ramon92/bulma-web/issues
- npm.io page: https://npm.io/package/@bulma-web/button

## Dependencies (4)

- [lit-html](https://npm.io/package/lit-html.md) ^1.1.2
- [lit-element](https://npm.io/package/lit-element.md) ^2.2.1
- [@lion/button](https://npm.io/package/@lion/button.md) ^0.3.11
- [@bulma-web/styles](https://npm.io/package/@bulma-web/styles.md) ^0.1.3

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 0.6.3 (latest) — 2020-06-26
- 0.6.2 — 2020-06-11
- 0.6.1 — 2020-04-28
- 0.6.0 — 2020-03-31
- 0.5.3 — 2020-01-20
- 0.5.2 — 2020-01-13
- 0.5.1 — 2019-12-24
- 0.5.0 — 2019-10-29
- 0.4.0 — 2019-09-30
- 0.3.0 — 2019-09-28
- 0.2.0 — 2019-09-25

## README

# button
`bw-button` is an easy customizable button with css custom properties, styling for bulma is included

## Usage
#### installation
```
npm i -S @bulma-web/button
// or
yarn add -S @bulma-web/button
```
```
import '@bulma-web/button'
```
#### Example
```
<bw-button type="is-primary">Button Text</bw-button>
```

### API

|Property   |Description                            |Type       |Values                         |
|-----------|---------------------------------------|-----------|-------------------------------|
|type       |Type (color) of the button, optional   |String     |`is-white`, `is-light`, `is-black`, `is-dark`, `is-text`, `is-primary`, `is-link`, `is-info`, `is-success`, `is-warning`, `is-danger`                      |
|size       |Size of the button, optional           |String     |`is-small`, `is-normal`, `is-medium`, `is-large`|
|display    |display of the button normal or full-width|String  | `is-fullwidth`                |
|outlined   |Set the button to outlined version     |Boolean    |default `false`                |
|inverted   |Set the button inverted, for use on a colored background|Boolean|dafault `false`   |
|loading    |Set the button to the loading state    |Boolean    |default `false`                |
|disabled   |Set the button to the disabled state   |Boolean    |default `false`                |
|rounded    |Make the button rounded                |Boolean    |default `false`                |

### Custom CSS Variables for customization
|Variable                   |Description            |Type       |
|---------------------------|-----------------------|-----------|
|`--button-color`           |color      |color code |
|`--button-background-color`|background color|color code |
|`--button-border-color`    | border color    |color code |
|`--button-border-width`    | border size     |color code |
|`--button-padding-vertical`| vertical padding|px units   |
|`--button-padding-horizontal`| horizontal padding|px units|
|`--button-hover-color`     | color on hover  |color code |
|`--button-hover-border-color`| border color on hover|color code|
|`--button-focus-color`     | color in focused state|color code|
|`--button-focus-border-color`| border color in focused state|color code|
|`--button-focus-box-shadow-size`| shadow size when in focused state| box shadow notation|
|`--button-active-color`    | color in active state|color code|
|`--button-active-border-color`| border color in active state|color code|
|`--button-text-color`      | text color      |color code|
|`--button-text-hover-color`|text color on hover|color code|
|`--button-disabled-background-color`| background color when disabled|color code|
|`--button-disabled-border-color`|border color when disabled|color code|
|`-button-disabled-shadow`  |disabled shadow    |string|
|`--button-disabled-opacity`|opacity when disabled  |unitless|
|`--button-static-color`    |static color   |color code|
|`--button-static-background-color`|static background color|color code|
|`--button-static-border-color`|static border color|color code|

---
_Source: https://npm.io/package/@bulma-web/button · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
