| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Builder is a versatile React and React Native library designed for crafting dynamic form builders and much more. You can also develop dynamic website builders, dashboard builders, and any other builders you envision.
Some key characteristics:
Currently, Builder offers support for React and React Native, with plans to extend compatibility to other front-end frameworks in the future.
Click the thumbnail below to watch the library's intro video.
Install the dependencies via your preferred package manager.
pnpm install @coltorapps/builder @coltorapps/builder-reactThink of attributes as the props of your entities. For instance, a text field may include attributes such as a label, a requirement flag, a maximum length, and others. Attributes are atomic, enabling their reuse across various entities.
import { z } from "zod";
import { createAttribute } from "@coltorapps/builder";
export const labelAttribute = createAttribute({
name: "label",
validate(value) {
return z.string().min(1).parse(value);
},
});Think of entities with attributes as components with props. For example, you can define a text field entity, and users can later add multiple instances of text fields to a form.
import { z } from "zod";
import { createEntity } from "@coltorapps/builder";
import { labelAttribute } from "./label-attribute";
export const textFieldEntity = createEntity({
name: "textField",
attributes: [labelAttribute],
validate(value) {
return z.string().optional().parse(value);
},
});Think of builders as collections of supported entities. For example, you can have a form builder that allows adding text and select fields to a form, but also another landing page builder that allows adding hero sections and feature sections to a landing page.
import { createBuilder } from "@coltorapps/builder";
import { textFieldEntity } from "./text-field-entity";
export const formBuilder = createBuilder({
entities: [textFieldEntity],
});For more information about core concepts, React integration, API references, and guides, please visit the documentation at https://builder.coltorapps.com/.
pnpm installpnpm devpnpm testMIT License
| Back | FazBrowse Home | New Git URL |