MiHCM
feedback/@mihcm/ui·v0.21.0·stable

Toast

Brief non-blocking notification that auto-dismisses. Imperative toast() API with semantic variants, appearance styles, and configurable duration.

Live preview

Adjust the controls on the right; the preview and code update in real time.

example.tsxtsx
import { Toaster, toast } from '@mihcm/ui/Toast';

export function Example() {
  return (
    <toast
  type="default"
  position="bottom-right"
  theme="system"
  duration="5000"
  closeButton
  title="Event created"
  description="Your calendar event has been added."
    ></toast>
  );
}

Install

Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.

npx @mihcm/cli add Toast
Copies the source into components/ds/Toast.tsx. You own the file. Use --out to override the directory or --force to overwrite.