import * as React from "react"; import { Story, 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" }, defaultValue: "This is a message for the user." }, primaryAction: { control: { disable: true } }, secondaryAction: { control: { disable: true } }, className: { control: { disable: true } } }, args: { appearance: "default" } } as Meta; const Template: Story = args => ( ); export const Default = Template.bind({}); export const MessageAsCustomMarkup = Template.bind({}); MessageAsCustomMarkup.args = { message: (

Custom Heading Level 3

Detailed custom paragraph text.

) }; export const WithActions = Template.bind({}); WithActions.args = { primaryAction: , secondaryAction: };