Skip to content

Show a status

  1. Use an .mdx page. A .md page cannot import a component.

  2. Import the badge below the front matter:

    import StatusBadge from 'starlight-aurora/components/StatusBadge.astro';
  3. Put the badge in the text:

    The deploy is <StatusBadge status="running" />.

    The result: the deploy is running.

  4. To give a status that Aurora does not know a hue, add hue:

    <StatusBadge status="healthy" hue="ok" />

    The result: healthy

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.