saleor-dashboard/src/storybook/stories/components/StatusLabel.tsx

20 lines
608 B
TypeScript
Raw Normal View History

2019-06-19 14:40:52 +00:00
import { storiesOf } from "@storybook/react";
import * as React from "react";
import StatusLabel from "@saleor/components/StatusLabel";
import CardDecorator from "../../CardDecorator";
import Decorator from "../../Decorator";
storiesOf("Generics / StatusLabel", module)
.addDecorator(CardDecorator)
.addDecorator(Decorator)
.add("when success", () => (
<StatusLabel label="Example label" status="success" />
))
.add("when neutral", () => (
<StatusLabel label="Example label" status="neutral" />
))
.add("when error", () => (
<StatusLabel label="Example label" status="error" />
));