AsterUIDocsv1.0.2

Docs / Component reference

InlineEdit

Edit a value where it appears. Press Enter to save the edit or Escape to return to the previous text.

Inline edit example

Install

sh
npx @fierst/ui@1.0.2 add inline-edit

Registry dependencies: theme, icon. Package dependencies: @lucide/icons.

Exports from ./ui/inline-edit: InlineEdit.

Download the registry source for inline-edit 1.0.2.

API contracts

ts
export function* InlineEdit(
  props: {
    value?: string;
    defaultValue?: string;
    placeholder?: string;
    onSave?: (next: string) => void;
    class?: string;
  },
  ctx: Ctx,
)