Skip to content

Generating Components

This guide explains various ways 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. These components come with predefined basic 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.). You can generate different UI components by configuring the type field.

Generating Custom Components

Custom components let you create specialized form controls to meet your project requirements. You can specify custom components using the component field for flexibility and extensibility.

Generating Components Using Slots

Using slots to generate components provides greater flexibility, letting you customize component content or structure to meet your needs.

Generating HTML Tags

You can directly generate HTML tags 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.