Show a status
Procedure
Section titled “Procedure”-
Use an
.mdxpage. A.mdpage cannot import a component. -
Import the badge below the front matter:
import StatusBadge from 'starlight-aurora/components/StatusBadge.astro'; -
Put the badge in the text:
The deploy is <StatusBadge status="running" />.The result: the deploy is running.
-
To give a status that Aurora does not know a hue, add
hue:<StatusBadge status="healthy" hue="ok" />The result: healthy
In a plain .md page
Section titled “In a plain .md page”A .md page cannot import a component. Write the badge’s HTML:
The service is <span class="sa-status-badge" data-hue="ok">healthy</span>.The result: the service is healthy.
The theme’s CSS styles the class for each hue. Generated pages (plissken) can use it too.
The statuses and the hues are in the component reference.