SnowballSH Foundation UI

Callout

Pick a framework. Both use the same recipe, so the styling matches exactly.

Info: reads calmly in the accent hue.
Warning: something needs attention before publishing.
Aurora: a highlight for good news and fresh results.
Callout props for React
PropTypeDefaultDescription
tone"info" | "warn" | "aurora"infoColor accent for the note.

Also takes className and children. Anything else passes through to the div.

callout.demo.tsx
import { Callout } from "../react/index.js";

export default function CalloutDemo() {
  return (
    <div className="flex flex-col">
      <Callout tone="info">Info: reads calmly in the accent hue.</Callout>
      <Callout tone="warn">
        Warning: something needs attention before publishing.
      </Callout>
      <Callout tone="aurora">
        Aurora: a highlight for good news and fresh results.
      </Callout>
    </div>
  );
}