0.2.7 • Published 2 years ago

svelte-headless-button v0.2.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Svelte Headless Button

License

Simple button component without default style.

Installation

You can install this package with npm or yarn

npm install svelte-headless-button
yarn add svelte-headless-button

Usage

<script>
import Button from 'svelte-headless-button';

function handleClick(e) {
    console.log('Clicked!');
}
</script>

<Button id="myButton" name="myButton" on:click={handleClick}>
    My Button
</Button>

Props

NameValue
idThe button id
nameThe button name

Events

EventNote
clickClick Event
0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago