UNPKG

@arolariu/components

Version:

🎨 60+ beautiful, accessible React components built on Radix UI. TypeScript-first, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

21 lines (20 loc) • 622 B
"use client"; import { jsx } from "react/jsx-runtime"; import "react"; import { useTheme } from "next-themes"; import { Toaster, toast } from "sonner"; const sonner_Toaster = ({ ...props })=>{ const { theme = "system" } = useTheme(); return /*#__PURE__*/ jsx(Toaster, { theme: theme, className: "toaster group", style: { "--normal-bg": "var(--popover)", "--normal-text": "var(--popover-foreground)", "--normal-border": "var(--border)" }, ...props }); }; export { sonner_Toaster as Toaster, toast }; //# sourceMappingURL=sonner.js.map