This component no longer exists. It was in ondo-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-09 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
toast
ondo-ui/toastRemovedComponent
A succinct message that is displayed temporarily.
Install it
npx shadcn@latest add https://ui.ondo.dou.so/r/toast.jsonSource
1"use client"23import * as React from "react"4import { Toast as ToastPrimitive } from "@base-ui/react/toast"5import {6 IconAlertOctagon,7 IconAlertTriangle,8 IconCircleCheck,9 IconInfoCircle,10 IconLoader,11 IconX,12} from "@tabler/icons-react"1314import { cn } from "@/lib/utils"15import { Button } from "@/components/ui/button"1617const toast = ToastPrimitive.createToastManager()1819function ToastProvider({ ...props }: ToastPrimitive.Provider.Props) {20 return <ToastPrimitive.Provider {...props} />21}2223function ToastPortal({ ...props }: ToastPrimitive.Portal.Props) {24 return <ToastPrimitive.Portal data-slot="toast-portal" {...props} />25}2627function ToastViewport({ className, ...props }: ToastPrimitive.Viewport.Props) {28 return (29 <ToastPrimitive.Viewport30 data-slot="toast-viewport"31 className={cn(32 "pointer-events-none fixed inset-x-4 bottom-4 z-50 mx-auto w-auto max-w-sm outline-none sm:right-4 sm:left-auto sm:mx-0 sm:w-full",33 className34 )}35 {...props}36 />37 )38}3940function Toast({ className, ...props }: ToastPrimitive.Root.Props) {41 return (42 <ToastPrimitive.Root43 data-slot="toast"44 className={cn(45 "group/toast pointer-events-auto absolute right-0 bottom-0 z-[calc(1000-var(--toast-index))] w-full origin-bottom rounded-2xl border bg-popover text-popover-foreground shadow-lg will-change-transform outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50",46 "[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]",47 "h-(--height) [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_500ms_cubic-bezier(0.22,1,0.36,1),opacity_500ms,height_150ms]",48 "after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']",49 "data-expanded:h-(--toast-height) data-expanded:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]",50 "data-limited:opacity-0 data-starting-style:[transform:translateY(150%)]",51// … truncated
What it pulls in
npm packages
Other registry items
