Thanks to visit codestin.com
Credit goes to github.com

Skip to content

KaotoIO/forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Kaoto

License Youtube Zulip Zulip


Kaoto - The Integration Designer for Apache Camel

Documentation | Workshops | Contribute | Chat

A picture showing the Kaoto graphical editor showing an integration with the configuration panel opened

Kaoto forms

Kaoto forms are a library of reusable components that can be used to build forms in the Kaoto UI. They are designed to be flexible and easy to use, adapted to Apache Camel component schemas, allowing developers to create forms that can be used in different contexts.

Getting started

import { KaotoForm } from '@kaoto/forms';

const schema = {
  type: 'object',
  properties: {
    name: {
      type: 'string',
      title: 'Name',
      description: 'The name of the integration',
    },
    description: {
      type: 'string',
      title: 'Description',
      description: 'A brief description of the integration',
    },
    // Add more properties as needed
  },
};

const model = {
  name: 'My Integration',
  description: 'This is a sample integration',
  // Add more properties as needed
};

const handleOnChangeIndividualProp = (path: string, value: unknown) => {
  console.log(`Property ${prop} changed to ${value}`);
  // Handle the change event as needed
};

const onChange = (value: unknown) => {
  console.log('Form changed:', value);
  // Handle the form change event as needed
};

<KaotoForm
  schema={schema}
  model={model}
  onChangeProp={handleOnChangeIndividualProp}
  onChange={onChange}
/>

Screenshots

A picture showing the Kaoto form

About

Kaoto form library

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages