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

There is something that we need to tell you about

And that something is detailed enough to require two lines and some custom formatting

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