0.2.7 • Published 3 years ago

svelte-headless-button v0.2.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago