Status

A status word in its tone's color, with an optional icon. Status is never color alone.

View source
ActiveExpiringDownSyncingArchivedLive
import { Status } from "@logicplanes/kaeso-ui";

Props

  • children
    ReactNode

    The word that carries the meaning.

  • icon
    IconSvgElement

    A mark before the word in the same color, e.g. icons.success for “Up to date”.

  • size
    "md" | "sm" = md

    The text size: 14px, or 13px (sm) with a 14px icon.

  • tone
    "neutral" | "success" | "warning" | "danger" | "info" = neutral

    The status the word marks; keep it next to words that say the same.