Alert

A short message beside content: information, or something that went wrong.

Invoices sync every hourChanges in Northwind Freight's ledger show here within the hour.

Installation

pnpm dlx shadcn@latest add checkfu/uicontext/callout

Usage

import { Callout } from "./ui/uicontext/components/Callout.ts"
export const ScheduleNote = <M>(h: Html.H<M>) =>	Callout(h, "info", [h.strong.children("Runs every weekday"), h.span.children("It starts at 9:00 in the workspace's time zone.")])

Accessibility

  • An error callout is an alert, announced when it appears; any other callout is a note.
  • The words must carry the meaning; the tone only colors it.

Source