Sonner

Toast notifications.

Use Toaster and the toast helper to show transient notifications.

import { Button, toast, Toaster } from '@tile-ui/react';

export default function SonnerDemo() {
	return (
		<div className="component-preview__stack">
			<div className="button-group">

Registry install

pnpm dlx shadcn@latest add @tile-ui/sonner

Package usage

import { Toaster } from '@tile-ui/react';
 
<Toaster position="bottom-right" />

Highlights

  • Six types
  • Positions and duration
  • Rich colors and themes

Registry dependencies

ItemPurpose
sonnerComponent source and module styles
coreFramework-agnostic logic helpers
stylesShared SCSS tokens and globals

API reference

Toaster

PropTypeDefault
position'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center'
durationnumber
closeButtonboolean
richColorsboolean
theme'light' | 'dark' | 'system'