Skip to content

LabelIcon

LabelIcon renders a label’s leading glyph from a {@link LabelIconSpec}: a string is treated as a runtime icon name (resolved by the registered fallback provider), any other ReactNode is rendered as-is. Returns null for an absent or empty spec so callers can spread it unconditionally before a label.

Source

import { LabelIcon } from "@flanksource/clicky-ui/data";

The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.

Prop Type Default Description
className string — —
icon LabelIconSpec — —