Unknown Component

Received request from Uniform to render a component with the public ID: enhancedParametersDemo.

<UniformComposition /> does not have enhancedParametersDemo mapped to a React component yet.

To teach your app how to render this component:

  • Create a React component and register it with Uniform, for example
    function EnhancedParametersDemo({ switch, withTrueLabel, multiSelectDropdown, withTrueAndFalseLabels }) {
      return (
        <div>
          EnhancedParametersDemo!
          
        </div>
      )
    }
    
    registerUniformComponent({ type: "enhancedParametersDemo", component: EnhancedParametersDemo })
    Props that your React component will receive
    {
      "switch": false,
      "withTrueLabel": false,
      "multiSelectDropdown": [
        "easy",
        "medium"
      ],
      "withTrueAndFalseLabels": true,
      "component": {
        "type": "enhancedParametersDemo",
        "parameters": {
          "switch": {
            "type": "checkbox",
            "value": false
          },
          "withTrueLabel": {
            "type": "checkbox",
            "value": false
          },
          "multiSelectDropdown": {
            "type": "multi-select",
            "value": [
              "easy",
              "medium"
            ]
          },
          "withTrueAndFalseLabels": {
            "type": "checkbox",
            "value": true
          }
        }
      }
    }
  • Import the component into the file where <UniformComposition /> is defined, for example
    import "../components/EnhancedParametersDemo.tsx"

Need more help? Check out the documentation.