import { Meta, StoryObj } from "@storybook/react"; import { Banner } from "."; import { MaterialIcon } from "../../Icons/MaterialIcon"; import { getCssProps } from "@sb/cssprops"; import { RenderPropsArgTypes } from "@sb/helpers"; export default { title: "Banners/Banner", component: Banner, parameters: { cssprops: getCssProps("Banner"), }, argTypes: { ...RenderPropsArgTypes, variant: { control: "select", options: ["info", "error", "success", "warning"], }, }, } as Meta; type Story = StoryObj; export const Primary: Story = { args: { variant: "info", children: This is a banner, }, }; export const WithIcon: Story = { args: { ...Primary.args, children: [ , This is a banner, ], }, }; export const WithIconButton: Story = { args: { ...Primary.args, children: [ , This is a banner, , ], }, }; export const WithButton: Story = { args: { ...Primary.args, children: [ , This is a banner, Click Me, ], }, };