Saltar al contenido
El Muestrario

componente · @solu30/ui-kit/input

InlineText

Valor de texto que se vuelve campo al tocarlo, con guardado asincrónico y modo multilínea.

Seguir leyendo — 1 párrafo más

InlineText renders a tappable value that becomes a text input on click. Commit with Enter (single-line) or the save button. Escape cancels. Supports async onSave — shows a pending state during the call.

3 sitios de import en 1 de 15 verticales — un archivo que la importa cuenta una vez, monte una instancia o veinte.

  • gestorsalon

El componente, montado

Cargando el espécimen…

Cómo se usa

import { InlineText } from '@solu30/ui-kit/input'

Props

7 props declaradas en los tipos de la versión instalada.
PropRequeridaTipoQué hace
valuesístringCurrent text value
onSavesí(value: string) => void | Promise<void>Called with the trimmed new value when the user commits
placeholderopcionalstringPlaceholder shown in display mode when value is empty
multilineopcionalbooleanWhen true renders a Textarea instead of an Input
classNameopcionalstringExtra class names applied to the outer wrapper
disabledopcionalbooleanDisables interaction entirely
emptyTextopcionalstringText shown when value is empty in display mode (defaults to placeholder or "—")