JSPM

  • Created
  • Published
  • Downloads 1128
  • Score
    100M100P100Q102972F
  • License MIT

A button that is easily styleable and accessible in all contexts

Package Exports

  • @lion/button
  • @lion/button/define
  • @lion/button/docs/assets/icon.svg.js
  • @lion/button/docs/features.md
  • @lion/button/docs/overview.md

Readme

Interaction >> Button >> Overview ||10

A button web component that is easily stylable and accessible.

import { html } from '@lion/core';
import '@lion/button/define';
export const main = () => html`<lion-button>Default</lion-button>`;

Features

  • Clickable area that is bigger than visual size
  • Works with native form / inputs
  • Has integration for implicit form submission similar to how native <form>, <input> and <button> work together.

Installation

npm i --save @lion/button
import { LionButton } from '@lion/button';
// or
import '@lion/button/define';