public prop names
use the semantic prop names in the current public components. similar-looking controls donāt all own state the same way, so check both the prop spelling and the update contract when moving an existing example. the packaged migration guide maps the previous props, dialog setup and CSS names to this update.
values and callbacks
| component | current contract |
|---|---|
| Input | bind:value, onValueInput(event), onValueBlur(event) |
| Selector | bind:selected, onValueChange(value) |
| ColorPicker | bind:value, onValueChange(value) |
| Checklist | bind:value as string IDs, onValueChange(value) |
| Toggle | checked plus app-owned onclick update |
| Switcher | child buttons and app-owned loaf-active selection |
| Carousel | defaultSelected index and onSelect(item) |
| Steps | bind:currentStep |
| Popover | expanded plus onDismiss(reason) |
| direct dialogs | bind:open, optional bind:close, onClose |
donāt replace every callback with onchange. Inputās named callbacks receive native events, while Selector and ColorPicker callbacks receive values. Toggleās checked state isnāt bindable.
semantic names and casing
use FieldLabelās htmlFor, PageContainerās pageId and maxWidth, URLButtonās href, displayUrl and label, and GitHubStarsā repository and optional count. visual component props such as Icon, Component, Illustration and ButtonIcon retain their capital letters. image props such as imageSrc and iconSrc take URLs, not components.
update a toggle deliberately
<script>
import { Toggle } from '@ciabi/loafkit-ui';
let quiet = $state(false);
</script>
<Toggle label="Quiet reading mode" checked={quiet} onclick={() => quiet = !quiet} />the handler updates app state rather than expecting the visual control to mutate it. apply the same ownership check before migrating another field.
package boundaries
replace old dialog-holder setup with createDialog, or directly render a dialog view with an open binding. Slider and the new components are exported from the package root. repository aliases such as $lib arenāt consumer import paths.
use your installed versionās types and the componentās guide alongside the migration table. native HTML attributes keep native spelling unless a documented component prop explicitly maps them, as Input does for inputMode and minLength.