Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Build accessible, unstyled Vue 3 components using Reka UI (formerly Radix Vue) with WAI-ARIA compliance.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
components/editable.md
1# Editable23Inline text editing with preview/edit modes45**Parts:** `EditableRoot`, `EditableArea`, `EditableInput`, `EditablePreview`, `EditableSubmitTrigger`, `EditableCancelTrigger`, `EditableEditTrigger`67## EditableRoot89### Props10| Prop | Type | Default |11|------|------|---------|12| `activationMode` | `"dblclick" \| "focus" \| "none"` | `"focus"` |13| `as` | `AsTag \| Component` | `"div"` |14| `asChild` | `boolean` | - |15| `autoResize` | `boolean` | `false` |16| `defaultValue` | `string` | - |17| `dir` | `"ltr" \| "rtl"` | - |18| `disabled` | `boolean` | `false` |19| `id` | `string` | - |20| `maxLength` | `number` | - |21| `modelValue` | `string` | - |22| `name` | `string` | - |23| `placeholder` | `string \| { edit: string; preview: string; }` | `"Enter text..."` |24| `readonly` | `boolean` | - |25| `required` | `boolean` | `false` |26| `selectOnFocus` | `boolean` | `false` |27| `startWithEditMode` | `boolean` | - |28| `submitMode` | `"blur" \| "none" \| "enter" \| "both"` | `"blur"` |2930### Emits31| Event | Payload |32|-------|---------|33| `submit` | `[value: string]` |34| `update:modelValue` | `[value: string]` |35| `update:state` | `[state: "cancel" \| "submit" \| "edit"]` |3637### Slots38| Slot | Type |39|------|------|40| `isEditing` | `boolean` |41| `modelValue` | `string \| undefined` |42| `isEmpty` | `boolean` |43| `submit` | `` |44| `cancel` | `` |45| `edit` | `` |4647## EditableArea4849### Props50| Prop | Type | Default |51|------|------|---------|52| `as` | `AsTag \| Component` | `"div"` |53| `asChild` | `boolean` | - |5455## EditableInput5657### Props58| Prop | Type | Default |59|------|------|---------|60| `as` | `AsTag \| Component` | `"input"` |61| `asChild` | `boolean` | - |6263## EditablePreview6465### Props66| Prop | Type | Default |67|------|------|---------|68| `as` | `AsTag \| Component` | `"span"` |69| `asChild` | `boolean` | - |7071## EditableSubmitTrigger7273### Props74| Prop | Type | Default |75|------|------|---------|76| `as` | `AsTag \| Component` | `"button"` |77| `asChild` | `boolean` | - |7879## EditableCancelTrigger8081### Props82| Prop | Type | Default |83|------|------|---------|84| `as` | `AsTag \| Component` | `"button"` |85| `asChild` | `boolean` | - |8687## EditableEditTrigger8889### Props90| Prop | Type | Default |91|------|------|---------|92| `as` | `AsTag \| Component` | `"button"` |93| `asChild` | `boolean` | - |94