
* Add references field to attributes section * Update messagees and test shapshots * Remove unused style in sortable chips component
15 lines
512 B
TypeScript
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} />);
|