# @lion/button

> A button that is easily styleable and accessible in all contexts

Latest version **0.18.1** (published 2022-09-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lion/button
pnpm add @lion/button
yarn add @lion/button
bun add @lion/button
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.18.1 |
| Published | 2022-09-08 |
| First published | 2019-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 74.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1975 |
| Author | ing-bank |
| Maintainers | narzac, d4kmor |
| Keywords | button, lion, web-components |

## Links

- npm: https://www.npmjs.com/package/@lion/button
- Repository: https://github.com/ing-bank/lion
- Homepage: https://github.com/ing-bank/lion/
- Issues: https://github.com/ing-bank/lion/issues
- npm.io page: https://npm.io/package/@lion/button

## Dependencies (1)

- [@lion/core](https://npm.io/package/@lion/core.md) ^0.24.0

## Recent versions

- 0.18.1 (latest) — 2022-09-08
- 0.12.4 (lit1) — 2023-04-13
- 0.18.0 — 2022-05-31
- 0.12.3 — 2022-05-16
- 0.12.2 — 2022-05-09
- 0.12.1 — 2022-05-09
- 0.17.0 — 2022-04-06
- 0.16.0 — 2022-03-07
- 0.15.0 — 2022-01-04
- 0.14.5 — 2021-11-11
- 0.14.4 — 2021-10-19
- 0.14.3 — 2021-09-01
- 0.14.2 — 2021-07-21
- 0.14.1 — 2021-07-05
- 0.14.0 — 2021-05-31
- … 154 more at https://npm.io/package/@lion/button/versions

## README

# Button >> Overview ||10

A button web component that is easily stylable and accessible.

```js script
import { html } from '@mdjs/mdjs-preview';
import '@lion/button/define';
```

```js preview-story
export const main = () => html` <lion-button>Default</lion-button> `;
```

## Features

- Clickable area that is bigger than visual size
- A special `button-reset` and `button-submit` works with native form / inputs
- `button-submit` has integration for implicit form submission similar to how native `<form>`, `<input>` and `<button>` work together.

## Installation

```bash
npm i --save @lion/button
```

```js
import { LionButton, LionButtonReset, LionButtonSubmit } from '@lion/button';
// or
import '@lion/button/define';
```

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