I have an input component like this:
<script lang="ts"></script>
<div class="wrap-input">
<input
class='input'
type="text"
{...$$restProps}
/>
</div>
<style lang="scss">
// some styles
</style>
I used input component on the parent:
<script lang="ts">
// function event handler
const onKeyUp = (event) => {
console.log(event)
}
</script>
<main>
<Input
on:keyup={onKeyUp} // How I can send this event to input component as $$restProps
className="input-todo"
placeholder="What needs to be done ?"
/>
</main>
<style lang="scss">
// some styles
</style>