shadcn.io is an independent project built on shadcn/ui
Show Info is an outline button. The toast says New updates are available and shows the info icon. There is no description and no button inside the toast.
Use it for a tip or a new version, not for a success or a failure. If people should read it and keep it, use an Alert. In React, Base UI themes the toaster and does not add a next step.
Installation
Anatomy

Usage
<>
<Toaster />
<Button onClick={handleShowToast} variant="outline">
Show Info
</Button>
</>FAQ
How does this demo show an info toast?
The button calls toast.info with "New updates are available". That sets the type to info. Toaster draws an InfoIcon with className="size-4" and aria-hidden.
Which options does this call pass?
Only the message. There is no description, action, duration, or custom icon in this file.
How do I add a line under the update message?
Pass description as the second argument to toast.info. It renders under the title. This demo leaves it off.
How do I show the same words with no info icon?
Call toast with the string. A plain call has no type, so Toaster skips the info icon. This file uses toast.info, so the icon is InfoIcon.
API Reference
Sonner
No extra props in this demo. The rest is on the Sonner page.
Button
Sets onClick={handleShowToast} and variant="outline". The rest is on the Button page.





