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
| Prop | Requerida | Tipo | Qué hace |
|---|---|---|---|
| attributes | sí | AttributeOption[] | — |
| onChange | sí | (next: AttributeOption[]) => Promise<void> | — |
| duplicateAttrError | opcional | string | Error message shown when a duplicate attribute is added (default: "Ese atributo ya existe") |
| newAttrPlaceholder | opcional | string | Placeholder for the new attribute name input |