import { action } from "@storybook/addon-actions" import type { Meta, StoryObj } from "@storybook/react" import { Toaster, toast } from "sonner" import { Button } from "../../action/button" /** * An opinionated toast component for React. */ const meta: Meta = { title: "base/communication/Toast", component: Toaster, tags: ["autodocs"], argTypes: { position: { control: "select", options: [ "top-center", "top-right", "top-left", "bottom-center", "bottom-right", "bottom-left", ], description: "The position of the toast", }, }, args: {}, parameters: { layout: "fullscreen", }, } satisfies Meta export default meta type Story = StoryObj /** * The default form of the toaster. */ export const Default: Story = { render: args => (
), }