Companion Picker
The panel a person uses to choose their companion: a live preview, then bot or blob options. Controlled with v-model; saving, resetting and cancelling are events, so it fits any surface.
Default
Choose a kind, then tune it. The preview keeps looking at the pointer, and every click updates v-model at once.
Live elsewhere
v-model changes with every click, so the host can show the draft somewhere else at the same time, here in a greeting, and drop it on cancel.
In a dialog
The panel is not a dialog. Put it in a Dialog, a Sheet, a popover or a page.
Persisted
Saving hands you a normalized config: only the fields of the chosen kind. This example keeps it in localStorage.
Limited kinds
kinds restricts and orders what can be chosen. With a single kind the toggle disappears.
API Reference
CompanionPicker
Accessibility
Keyboard shortcuts and ARIA behavior.
- Shape, colour and kind pickers are radio groups with an accessible name each.
- The preview is an image with a label that names the kind.
- Every control reaches focus with Tab and shows a focus ring.