---
name: BadgeRule
lang: cpp
domain: core
version: "1.0.0"
algebraic: product
definition: |
  struct BadgeRule {
      std::string value;
      std::string color_hex;
      std::string label;
  };
description: "Regla de badge para CellRenderer::Badge. Mapea un valor exacto de celda a un color hex y un label visual opcional. Si label vacio, se usa value. Issue 0081-N."
tags: [tables, tql, types, cpp-tables]
uses_types: []
file_path: "cpp/functions/core/data_table_types.h"
---

## Notas

`color_hex` acepta `"#rrggbb"` o `"rrggbb"`. Sin alpha — siempre opaco.
`value` es exact match case-sensitive. Sin wildcards ni regex en Phase 1.
