Components

Each .kreft file is a component. Use it as a tag, written in kebab-case.

Props: parent → child

<counter start={3}>: the counter starts from the value the parent gives it.

Counter

3

Double: 6 · keep going

Events: child → parent

The list sends remove with an id; this page removes the item.

k-model on a component

You picked 3 of 5 (saved).

Slots and scoped slots

A panel

This paragraph goes into the default slot.

The panel opened at 1:39:54 PM and sent that time here.

Switching components: <kreft-component :is>