UNPKG

styled-hook-form

Version:

React form library for styled-components based on grommet and react-hook-form

17 lines (16 loc) 731 B
import { GridProps } from "grommet"; import { UseFormReturn } from "react-hook-form"; import { PropType } from "types/utils"; import { FormBuilderProps, FormField } from "../types"; declare const gridLayout: ({ fields, methods, rows, columns, areas, children, editorWrapComponent, options, model, }: { fields: FormField[]; methods: UseFormReturn; rows: PropType<GridProps, "rows">; columns: PropType<GridProps, "columns">; areas: PropType<GridProps, "areas">; children: PropType<FormBuilderProps, "children">; editorWrapComponent: PropType<FormBuilderProps, "editorWrapComponent">; options: PropType<FormBuilderProps, "options">; model: any; }) => JSX.Element; export { gridLayout as default };