2020-05-14 09:30:32 +00:00
|
|
|
import Chip, { ChipProps } from "@saleor/components/Chip";
|
2021-01-07 11:01:24 +00:00
|
|
|
import CardDecorator from "@saleor/storybook/CardDecorator";
|
|
|
|
import Decorator from "@saleor/storybook/Decorator";
|
2019-06-19 14:40:52 +00:00
|
|
|
import { storiesOf } from "@storybook/react";
|
2019-08-09 10:26:22 +00:00
|
|
|
import React from "react";
|
2019-06-19 14:40:52 +00:00
|
|
|
|
|
|
|
const props: ChipProps = {
|
|
|
|
label: "Lorem Ipsum"
|
|
|
|
};
|
|
|
|
|
|
|
|
storiesOf("Generics / Chip", module)
|
|
|
|
.addDecorator(CardDecorator)
|
|
|
|
.addDecorator(Decorator)
|
|
|
|
.add("default", () => <Chip {...props} />)
|
|
|
|
.add("with x", () => <Chip {...props} onClose={() => undefined} />);
|