HealthIndicator
The HealthIndicator helps consumers to visualize the status of a resource.
Import
import { HealthIndicator } from '@dynatrace/strato-components-preview/content';
Use cases
Change the status and visual
Use the status and visual prop to create the different contextual indicator
variants. When HealthIndicator is used within an accentuated Container, it
automatically uses the on accent text color of the color defined on the
HealthIndicator.
Custom visual representation
Use the HealthIndicator.Visual component to customize the visual
representation of the indicator.
Label
The HealthIndicator.Label component allows you to render custom labels using
both inline and block-level elements.
Note: Be careful when using a different line height than the base line height. If you use
HeadingorTextwith a smalltextStyle, ensure you place theHealthIndicatorinside theHeadingorTextto maintain proper line height alignment.
Usage of aria props
Add the aria-label prop to the component if it's used without a label.