Button API Overview
Initialization
<script>
import { Button } from "@svar-ui/svelte-core";
</script>
<!-- minimal configuration for initialization -->
<Button>Click Me</Button>
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Button Properties
css | Optional. Adds a custom style to a button |
disabled | Optional. Defines whether a button is disabled |
icon | Optional. Adds an icon into a button |
text | Optional. Adds a text for a button |
title | Optional. Sets a tooltip text with additional info about the control |
type | Optional. Sets the type of a button |
Button Events
click | Fires when a button is clicked |