TutimWizard
Overview
Installation
npm install @tutim/fields @tutim/headless @tutim/typesyarn add @tutim/fields @tutim/headless @tutim/typesBasic example
import React from 'react';
import { FormProvider } from '@tutim/headless';
import { TutimWizard, defaultFields } from '@tutim/fields';
const config = {
fields: [
{ key: 'firstName', label: 'First Name', type: 'text' },
{ key: 'lastName', label: 'Last Name', type: 'text' },
],
};
const App = () => {
return (
<div className="App">
<FormProvider fieldComponents={defaultFields}>
<TutimWizard onSubmit={console.log} config={config} />;
</FormProvider>
</div>
);
};
export default App;Last updated
Was this helpful?