uiable

Position Sonner

Component 53

About

A set of buttons that trigger sonner toast notifications in each of the six screen positions.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Position Sonner to your project and fits it to your theme.

Code

How Position Sonner is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { SonnerPosition } from "@/components/ui/uiable-sonner-position";
import { Toaster } from "@/components/ui/sonner";

export default function Default() {
  return (
    <div className="flex items-center justify-center p-8">
      <SonnerPosition />
      <Toaster />
    </div>
  );
}

Dependencies

More by uiable

View all
  • Feature Highlights Grid

    Feature Highlights Grid

    591
  • Card Tabs

    Card Tabs

    157
  • Financial Bento Grid

    Financial Bento Grid

    152
  • Portfolio Showcase Grid

    Portfolio Showcase Grid

    105
  • Marketing Hero Section

    Marketing Hero Section

    105
  • Chart Tooltip

    Chart Tooltip

    99
  • Sidebar with Search and Profile

    Sidebar with Search and Profile

    92
  • Attachment States

    Attachment States

    69

Explore more

Part of uiable — browse the full library on 21st.dev.