Saltar al contenido
El Muestrario

componente · @solu30/ui-kit/display

AttributeEditor

Editor de atributos y sus valores posibles —Color: rojo, verde, azul— con alta y baja de cada uno.

Seguir leyendo — 1 párrafo más

Full attribute editor: add/remove attributes and their values. Calls onChange after each mutation — consumer persists the new list.

Todavía no la importa ninguno de los 15 verticales medidos.

El componente, montado

Cargando el componente del paquete instalado…

Cómo se usa

import { AttributeEditor } from '@solu30/ui-kit/display'

Props

4 props declaradas en los tipos de la versión instalada.
PropRequeridaTipoQué hace
attributessíAttributeOption[]—
onChangesí(next: AttributeOption[]) => Promise<void>—
duplicateAttrErroropcionalstringError message shown when a duplicate attribute is added (default: "Ese atributo ya existe")
newAttrPlaceholderopcionalstringPlaceholder for the new attribute name input