Skip to main content
Version: 1.0.8

ColorMapping

@spartanfx/react v1.0.8


@spartanfx/react / ColorMapping

Type Alias: ColorMapping

ColorMapping = Record<string, IColorMappingEntry>

Color mapping type — maps a category key to a color entry.

Each entry is an IColorMappingEntry object with a background color and an optional textColor override.

Breaking

Since 1.0.7 — plain string / RGB tuple values are no longer part of the public type. Use { background: "#hex" } (with optional textColor) instead. Legacy Record<string, string> payloads are still handled at runtime for backward compatibility but should be migrated.