Feedback & status / CSS
Status badge
A precise operational badge for deployment, build, and service states.
Preparing the component workbench…
Feedback & status / CSS
A precise operational badge for deployment, build, and service states.
SOURCE / REACT · provisional
import StatusBadge from "@/components/buildwithme/status-badge/react";
<StatusBadge />// Adapted from https://github.com/vercel/registry-starter/blob/main/src/components/ui/badge.tsx under MIT. Copyright (c) Vercel, Inc..
'use client';
import { useAnimation } from './use-animation';
import './base.css';
import './status-badge.css';
export default function StatusBadge({
label = 'Status badge',
paused = false,
}: {
label?: string;
paused?: boolean;
}) {
const { ref, active } = useAnimation(paused);
return (
<div ref={ref} className="bw-demo" data-active={active}>
<div className="adapt-status" role="status">
<i aria-hidden="true" />
<span>{label}</span>
<small>Operational · demo</small>
</div>
</div>
);
}
Install the registry item to receive all 7 files and their declared dependencies. Copying one file may require the other files shown here.