Skip to content

Generating Components ​

This guide explains how to generate components in form-create.

Using the type field, you can generate any Vue component or native HTML tag. For example, {type: 'ElButton'} generates a component, and {type: 'div'} generates an HTML element.

Note

Before custom components are rendered, they must be mounted or registered using global or local methods. See Mount or Register.

Generating Built-in Components ​

Built-in components are default component types provided by form-create with predefined styles and behaviors for form fields.

Generating UI Components ​

UI components are built on third-party UI frameworks (such as Ant Design Vue, Element Plus, etc.). Generate different UI components by configuring the type field.

Generating Custom Components ​

Custom components let you create specialized form controls for your project. Specify custom components using the component field for flexibility and extensibility.

Generating Components Using Slots ​

Using slots to generate components provides greater flexibility, allowing you to customize component content or structure.

Generating HTML Tags ​

Generate HTML tags directly to embed native HTML elements or special style tags in forms.

FormCreate is an open-source project released under the MIT License. Free for personal and commercial use.