ag/uiag-ui
DocsComponents
Sections
  • Introduction
  • Components
  • Installation
  • Theming
Componentes
  • Accordion
  • Alert
  • Alert Dialog
  • Aspect Ratio
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Collapsible
  • Combobox
  • Command
  • Context Menu
  • Data Table
  • Date Picker
  • Dialog
  • Direction
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • Hover Card
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kbd
  • Label
  • Menubar
  • Native Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Radio Group
  • Resizable
  • Scroll Area
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Sonner
  • Spinner
  • Switch
  • Table
  • Tabs
  • Textarea
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Typography

Sonner

An opinionated toast component for React.

About#

Sonner is built and maintained by emilkowalski.

Installation#

pnpm add @ag/ui

Usage#

import { toast } from "sonner"
toast("Event has been created.")

Examples#

Types#

Description#

Position#

Use the position prop to change the position of the toast.

API Reference#

See the Sonner API Reference for more information.