Custom Fields
About

Custom fields

There are two ways to add custom components:

  • controls
  • components

Controls

Controls are custom components whose input properties are customizable.

    import Pie from "<location>";
    <MuiForms
        ...
        controls={{
            "piechart": <Pie {...props} />
        }}
        ...
    />

Components

Components are also custom components that have fixed input properties.

    import Pie from "<location>";
    <MuiForms
        ...
        components={{
            "piechart": Pie
        }}
        ...
    />

Properties

PropertyDescription
formA map of all form fields and their values
fieldProperties of the current field

Star us at github

© Copyright 2023 MuiForms.