Two State Button API Overview
Initialization
<script>
import { TwoState } from "@wx/svelte-core";
</script>
<!-- minimal configuration for initialization -->
<TwoState>Click Me</TwoState>
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Two State Button Properties
click | adds a click handler to a Two State button |
css | adds a custom style to a Two State button |
disabled | defines whether a Two State button is disabled |
icon | adds an icon into a Two State button |
iconactive | adds an icon into a Two State button in the pressed state |
title | sets a tooltip text with additional info about the control |
type | sets the type of a Two State button |
value | defines whether a button is pressed |