import { storiesOf } from "@storybook/react"; import React from "react"; import Form from "@saleor/components/Form"; import MultiSelectField from "@saleor/components/MultiSelectField"; import CardDecorator from "../../CardDecorator"; import Decorator from "../../Decorator"; const choices = [ { value: "1", label: "Apparel" }, { value: "2", label: "Groceries" }, { value: "3", label: "Books" }, { value: "4", label: "Accessories" } ]; storiesOf("Generics / MultiSelectField", module) .addDecorator(CardDecorator) .addDecorator(Decorator) .add("with no value", () => ( )) .add("with value", () => ( )) .add("with label", () => ( )) .add("with hint", () => ( )) .add("with label and hint", () => ( )) .add("with value, label and hint", () => ( )) .add("with error hint", () => ( )) .add("interactive", () => (
{({ change, data }) => ( )} ));