Skip to content
Viewership Inquire
Astro UI

Status Pill.

Tinted status label with a leading dot, in five tones.

FeedbackAtomNo dependencies Beautiful UI, MIT

.md
  • #214Spring Search Live
  • #215Trail Test video In review
  • #216Gear Guide email Needs approval
  • #217Reddit AMA post Rejected
  • #218Summer promo Queued

Install

  1. Import the foundation once

    foundation.css holds the tokens every component reads.

    Layout.astro
    ---
    // src/layouts/Layout.astro
    import "../styles/foundation.css";
    ---
  2. Copy StatusPill.astro

    Paste into src/components/viewership/status-pill/

  3. Use it

    Page.astro
    ---
    import StatusPill from "../components/viewership/status-pill/StatusPill.astro";
    ---
    
    <StatusPill />

Props 2

PropTypeDefaultDescription
tone "green" | "orange" | "red" | "accent" | "neutral" "neutral" Color. Maps to .vs-status-pill--<tone>.
dot boolean true Show the leading dot.

Source 1 file

Ported from Beautiful UI, MIT. Notices.