Button component.
<Button on:click={() => alert('Hello World')}>Hello World</Button>
Prop. | Type | Options | Default |
---|---|---|---|
type | string | https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type | - |
href | string | https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href | - |
target | string | https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target | - |
rel | string | https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel | - |
color | string | primary, secondary, danger, current | primary |
kind | string | outlined, ghost | - |
min | boolean | true, false | - |
size | string | xs, sm, md, lg, xl | - |
disabled | boolean | true, false | false |
loading | boolean | true, false | false |