@fakel/rest-admin
Version:
An application that makes it easier to work with your API
29 lines (28 loc) • 749 B
TypeScript
import React from 'react';
/**
* @example
* <TabbedForm
{...createProps}
initialValue={{ title: "", body: "", author: "" }}
>
<FormTab tab="Basic info">
<TextInput label="Title" name="title" placeholder="Enter title" />
<TextInput label="Body" name="body" placeholder="Enter body" />
</FormTab>
<FormTab tab="Info">
<TextInput
label="Author"
name="author"
placeholder="Enter author"
/>
</FormTab>
</TabbedForm>
*
* */
declare type TabbedFormInterface = {
initialValue: any;
handleSubmit?: (...any: any[]) => any;
defaultActiveKey?: string;
};
declare const TabbedForm: React.FC<TabbedFormInterface>;
export default TabbedForm;