Hayde
ExamplesDocumentationGithub
  • Hayde
  • ♥️Features
    • AI module
    • Builder.IO module
    • Chakra UI module
    • Create Plugin module
    • CSS module
    • emmet
    • General module
    • Material UI module
    • React.js module
    • Storybook module
  • 📔Documentation
    • CLI Arguments
    • Options
    • Profiles
    • NPM script trigger
    • How to Create Custom Plugin
    • Contributor Covenant Code of Conduct
  • 🚀Examples
  • Source Code
Powered by GitBook
On this page
  • Usage
  • Tags
  • Options

Was this helpful?

  1. Features

Builder.IO module

Usage

Please create a new json file called .hayde.json in your project root. This file will be used to configure the Hayde.

And then add builderIO to the plugins array.

{
  "plugins": [
    "general",
    "css",
    "reactJS",
    "materialUI",
    "chakraUI"
  ]
}

Tags

If you want Hayde to import your components into builderRegistry file automatically when you create the component, you need to add comment tags into your builderRegistry.

import { Builder } from "@builder.io/react";

// <!-- #hayde-builderIOImports -->
import Button from "./components/Button/Button";
import { builderIoSettings as ButtonSettings } from "./components/Button/Button.builderIo";
// <!-- #hayde-end-builderIOImports -->

// <!-- #hayde-builderIORegisterComponents -->
Builder.registerComponent(Button, buttonSettings);
// <!-- #hayde-end-builderIORegisterComponents -->

and then add importOnBuilderRegistryTag and registerOnBuilderRegistryTag tags to your .hayde.json file.

{
  "builderIO": {
    "importOnBuilderRegistryTag": "builderIOImports",
    "registerOnBuilderRegistryTag": "builderIORegisterComponents"
  }
}

Options

Option
Description
Default
Type

name

-

Component Name

string

override

-

true

boolean

addChildren

-

true

boolean

fileSuffix

-

.builderIo

string

templateName

-

main

string

templateFolder

-

builderIO

string

builderRegistryPath

-

./src/builderRegistry.ts

string

importOnBuilderRegistryTag

-

builderIOImports

string

registerOnBuilderRegistryTag

-

builderIORegisterComponents

string

builderRegistryComponentsPath

-

./components

string

Last updated 1 year ago

Was this helpful?

♥️