Editable
Switch a displayed value into an inline editor.
Preview
Import
import { Editable } from "@sigil-ui/components";Usage
<Editable defaultValue="Click to edit" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | The current controlled value. |
defaultValue | string | — | Initial value when the component manages its own state. |
onChange | (value: string) => void | — | Called when the value changes. |
placeholder | string | — | Hint shown before a value is entered. |
disabled | boolean | — | Prevents user interaction when enabled. |
Token integration
| CSS Variable | Purpose |
|---|---|
--s-text | Text |
--s-primary | Primary |
--s-border | Border |
--s-duration-fast | Duration fast |
--s-radius-sm | Radius sm |
--s-text-muted | Text muted |