Package Exports
- @lion/button
- @lion/button/define
- @lion/button/define-button
- @lion/button/define-button-reset
- @lion/button/define-button-submit
- @lion/button/docs/assets/icon.svg.js
- @lion/button/docs/overview.md
- @lion/button/docs/use-cases.md
Readme
Button >> Overview ||10
A button web component that is easily stylable and accessible.
import { html } from '@mdjs/mdjs-preview';
import '@lion/button/define';
export const main = () => html` <lion-button>Default</lion-button> `;
Features
- Clickable area that is bigger than visual size
- A special
button-reset
andbutton-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
npm i --save @lion/button
import { LionButton, LionButtonReset, LionButtonSubmit } from '@lion/button';
// or
import '@lion/button/define';