Skip to content

Commit 9e7c35b

Browse files
committed
feat: add component breadcrumb Sonner
1 parent cda66c4 commit 9e7c35b

File tree

6 files changed

+42
-2
lines changed

6 files changed

+42
-2
lines changed

packages/ui/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
"@radix-ui/react-tabs": "1.1.12",
2323
"@soybean-react-ui/variants": "workspace:*",
2424
"lucide-react": "0.525.0",
25+
"next-themes": "^0.4.6",
2526
"react": "19.1.0",
26-
"react-dom": "19.1.0"
27+
"react-dom": "19.1.0",
28+
"sonner": "^2.0.6"
2729
},
2830
"devDependencies": {
2931
"@turbo/gen": "2.5.0",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export { toast, useSonner } from 'sonner';
2+
3+
export { default as Sonner } from './source/sonner';
4+
5+
export * from './type';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export type { Action, ExternalToast, ToastClassnames, ToasterProps, ToastT, ToastToDismiss } from 'sonner';

packages/ui/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export * from './components/divider';
2020

2121
export * from './components/scroll-area';
2222

23+
export * from './components/sonner';
24+
2325
export * from './components/tabs';
2426

2527
export * from './types';

playground/src/app/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Metadata } from 'next';
22
import { Geist, Geist_Mono } from 'next/font/google';
33
import './globals.css';
4-
import { Card } from 'soybean-react-ui';
4+
import { Card, Sonner } from 'soybean-react-ui';
55

66
const geistSans = Geist({
77
subsets: ['latin'],
@@ -38,6 +38,8 @@ export default async function RootLayout({
3838
{children}
3939
</Card>
4040
</div>
41+
42+
<Sonner />
4143
</body>
4244
</html>
4345
);

pnpm-lock.yaml

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)