Feedback
Toast
A short message in a floating pill, in default, success, warning and danger variants.
Group: Feedback. Exports: Toast. shadcn/ui equivalent: Toast (partial parity).
Usage
import { Toast } from "./halaska-kit";
Toast props
messagestring:variantstring(default "default"): Visual variant.iconReactNode: Icon shown before the content.
Accessibility
- Has the status role, or the alert role for the danger variant.
- It has no timer and no dismiss control: showing and hiding it is up to you.
- Not focusable.
Known gaps
- A static element with no queue, stacking, positioning or auto-dismiss, which is what shadcn/ui's Sonner provides.
- No action button or close button.
- No description line under the message.
Halaska UI · Components · Patterns · Screens · Install