uiable

Position Sonner

Component 48

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

    335
  • Card Tabs

    Card Tabs

    99
  • Financial Bento Grid

    Financial Bento Grid

    67
  • Chart Tooltip

    Chart Tooltip

    65
  • Marketing Hero Section

    Marketing Hero Section

    58
  • Portfolio Showcase Grid

    Portfolio Showcase Grid

    55
  • Sidebar with Search and Profile

    Sidebar with Search and Profile

    50
  • Welcome Banner

    Welcome Banner

    39

Explore more

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