Events

View Source

Like binding normal DOM events with Svelte. Various Components in the Framework support forwarding their element's native events, or supply their own events for their own specific logic.

<script>
    import {Check} from "@kahi-ui/framework";

    function on_change(event) {
        console.log("I was changed to:", state);
    }

    let state = false;
</script>

<Check bind:state on:change={on_change} />