Saltar al contenido
El Muestrario

componente · @solu30/ui-kit/input

InlineColor

Fila de color que al tocarla abre un selector con campo hexadecimal, y confirma con Enter.

Seguir leyendo — 1 párrafo más

InlineColor renders a tappable row that becomes a color picker on click. Commit with Enter key or the check button. Escape or cancel button reverts. The color input and hex text input stay in sync.

2 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 { InlineColor } from '@solu30/ui-kit/input'

Props

4 props declaradas en los tipos de la versión instalada.
PropRequeridaTipoQué hace
labelsístringField label
valuesístring | nullCurrent hex color value (null = none)
onSavesí(v: string) => voidCalled with the new hex string when the user commits
classNameopcionalstringExtra class names applied to the outer wrapper