The StatusIndicatorComponent displays a status indicator with an icon and text. It supports various status types (error, success, warning, unknown, inactive, pending), customizable icon sizes, and optional tooltips for additional information.
Examples
Example 1: Basic Usage
Display status indicators with different status types:
(Required) The status type that determines the icon and color displayed.
iconSize?: 'sm' | 'md' | 'lg' | number
(Optional) The size of the icon. Can be a t-shirt size ('sm', 'md', 'lg') or a number in pixels. Defaults to 'md'.
tooltip?: string
(Optional) Tooltip text to display when hovering over the icon. If provided, a tooltip will be shown.
tooltipPosition?: string
(Optional) Position of the tooltip relative to the icon. Options include 'tooltip-top-left', 'tooltip-top-right', 'tooltip-bottom-left', 'tooltip-bottom-right', 'tooltip-left', etc.