lion/docs/components/interaction/button/overview.md
Thijs Louisse 57b2fb9ff8 feat(button): split off separate buttons for reset & submit
Co-authored-by: Gerjan van Geest <Gerjan.van.Geest@ing.com>
2021-05-27 09:00:10 +02:00

741 B

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
  • 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

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