sigilUI

Editable

Switch a displayed value into an inline editor.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { Editable } from "@sigil-ui/components";

Usage

<Editable defaultValue="Click to edit" />

Props

PropTypeDefaultDescription
valuestring—The current controlled value.
defaultValuestring—Initial value when the component manages its own state.
onChange(value: string) => void—Called when the value changes.
placeholderstring—Hint shown before a value is entered.
disabledboolean—Prevents user interaction when enabled.

Token integration

CSS VariablePurpose
--s-textText
--s-primaryPrimary
--s-borderBorder
--s-duration-fastDuration fast
--s-radius-smRadius sm
--s-text-mutedText muted