import React from "react"; import { Meta, Story } from "@storybook/react"; import { action } from "@storybook/addon-actions"; import { useForm } from "react-hook-form"; import { Button } from "@patternfly/react-core"; import { MultiLineInput, MultiLineInputProps, } from "../components/multi-line-input/MultiLineInput"; export default { title: "MultiLineInput component", component: MultiLineInput, } as Meta; const Template: Story = (args) => { const form = useForm({ defaultValues: { items: [{ value: "" }], }, }); return (
{ action("submit")(data); })} >

); }; export const View = Template.bind({}); View.args = { name: "items", };