mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-29 07:34:11 +00:00
61 lines
1.3 KiB
TypeScript
61 lines
1.3 KiB
TypeScript
"use client"
|
|
|
|
import { toast } from "sonner"
|
|
|
|
import { Button } from "@/styles/base-nova/ui/button"
|
|
|
|
export function SonnerPosition() {
|
|
return (
|
|
<div className="flex flex-wrap justify-center gap-2">
|
|
<Button
|
|
variant="outline"
|
|
onClick={() =>
|
|
toast("Event has been created", { position: "top-left" })
|
|
}
|
|
>
|
|
Top Left
|
|
</Button>
|
|
<Button
|
|
variant="outline"
|
|
onClick={() =>
|
|
toast("Event has been created", { position: "top-center" })
|
|
}
|
|
>
|
|
Top Center
|
|
</Button>
|
|
<Button
|
|
variant="outline"
|
|
onClick={() =>
|
|
toast("Event has been created", { position: "top-right" })
|
|
}
|
|
>
|
|
Top Right
|
|
</Button>
|
|
<Button
|
|
variant="outline"
|
|
onClick={() =>
|
|
toast("Event has been created", { position: "bottom-left" })
|
|
}
|
|
>
|
|
Bottom Left
|
|
</Button>
|
|
<Button
|
|
variant="outline"
|
|
onClick={() =>
|
|
toast("Event has been created", { position: "bottom-center" })
|
|
}
|
|
>
|
|
Bottom Center
|
|
</Button>
|
|
<Button
|
|
variant="outline"
|
|
onClick={() =>
|
|
toast("Event has been created", { position: "bottom-right" })
|
|
}
|
|
>
|
|
Bottom Right
|
|
</Button>
|
|
</div>
|
|
)
|
|
}
|