Axinom Mosaic Libraries
    Preparing search index...

    Interface StatusDefinition

    Describes how a single status value should be displayed.

    interface StatusDefinition {
        color?: string;
        icon?: IconComponent;
        label?: string;
        title?: string;
    }
    Index

    Properties

    color?: string

    Any CSS color, applied to the icon (default: var(--mosaic-neutral)). Prefer the branding custom properties so that a status follows the active theme: var(--mosaic-success), var(--mosaic-error), var(--mosaic-warning), var(--mosaic-secondary), var(--mosaic-neutral-1), var(--mosaic-neutral).

    Icon to be displayed in front of the text. Omit to render text only.

    Icons carry no color of their own, so an icon without a color is rendered in the default neutral tone.

    label?: string

    Text to be displayed (default: the raw value)

    title?: string

    Text shown on hover (default: the label)