Basic usage

Add components and connect their properties, state, and events to your application.

Properties and state#

Set string attributes in HTML. For Button, boolean attributes such as disabled, loading can be enabled by adding the attribute without a value.

HTML
<sy-button variant="primary" size="large">Save</sy-button>
<sy-button disabled>Unavailable</sy-button>
<sy-button variant="primary" loading>Saving</sy-button>
Remove the attribute to disable the state. In JavaScript, set it to button.disabled = false or button.loading = false as needed.