UNPKG

@cimpress/react-components

Version:
27 lines 886 B
import React from 'react'; import { Alert } from '../Alert'; const meta = { title: 'Components/Alert', component: Alert, }; export default meta; export const Default = { args: { title: 'Alert title', message: 'Alert message', }, }; function AlertStory(props) { return ( // Wrap in `div` so that `flex` doesn't affect `Alert` React.createElement("div", null, React.createElement(Alert, Object.assign({ title: "Title", message: "Message" }, props)))); } export const StatusVariants = { render: () => (React.createElement("div", null, React.createElement(AlertStory, { status: "info" }), React.createElement(AlertStory, { status: "success" }), React.createElement(AlertStory, { status: "warning" }), React.createElement(AlertStory, { status: "danger" }))), }; //# sourceMappingURL=Alert.stories.js.map