import * as React from "react"; import { StoryFn, Meta } from "@storybook/react"; import { action } from "@storybook/addon-actions"; import { InfoBoxBanner } from "../index"; import { PrimaryAction, SecondaryAction } from "./helpers/actions"; import InfoBoxStoryContainer from "./helpers/InfoBoxStoryContainer"; import { InfoBoxProps } from "../components/InfoBox"; export default { title: "Feedback/InfoBoxBanner", component: InfoBoxBanner, argTypes: { appearance: { options: ["default", "info", "success", "warning", "danger", "outline"], control: { type: "select" } }, message: { control: { type: "text" } }, primaryAction: { control: { disable: true } }, secondaryAction: { control: { disable: true } }, className: { control: { disable: true } } }, args: { appearance: "default", message: "This message is an example of how we might inform the user." } } as Meta; const Template: StoryFn = args => ( ); export const Default = { render: Template }; export const MessageAsCustomMarkup = { render: Template, args: { message: (

Custom Heading Level 3

Detailed custom paragraph text.

) } }; export const WithActions = { render: Template, args: { primaryAction: , secondaryAction: } };