@raisiqueira/lit-button
v1.0.3
Published
A simple web component
Downloads
4
Maintainers
Readme
Lit Button
Simple custom Web Component made with Lit Element.
Studies only to see how Polymer Lit Element work!
Install
yarn add @raisiqueira/lit-button
Usage
<script type="module">
import 'https://unpkg.com/@raisiqueira/[email protected]/dist/index.js';
</script>
<jst-button>Hey button</jst-button>
See a real example on Storybook
Props
| Prop | type | default | | -------- | ------- | ------- | | disabled | boolean | false | | primary | boolean | false |
Running the project (all commands available)
dev
Run the concurrently
command to compile with TypeScript and run the es-dev-server
format
Runs prettier
lint
Runs eslint
Build the project (commands available)
build
Build the project and generate a dist
folder.
build:watch
Build the project with TypeScript and watch all .ts
files.
License
MIT @ Raí Siqueira