Badge

A small round label for a status, in neutral, green and blue.

Live Draft Beta

Options

Size

Code

import "./badge.css";

export function Badge({ tone, children }) {
  const className = tone ? "dh-badge dh-badge--" + tone : "dh-badge";
  return <span className={className}>{children}</span>;
}
Live Draft Beta