saleor-dashboard/src/components/Chip/Chip.stories.tsx
Dawid Tarasiuk ee05b090b8 1862 - Add references field to attributes section (#923)
* Add references field to attributes section

* Update messagees and test shapshots

* Remove unused style in sortable chips component
2021-01-20 11:50:53 +01:00

15 lines
512 B
TypeScript

import Chip, { ChipProps } from "@saleor/components/Chip";
import CardDecorator from "@saleor/storybook/CardDecorator";
import Decorator from "@saleor/storybook/Decorator";
import { storiesOf } from "@storybook/react";
import React from "react";
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} />);