Skip to main content

404: Not Found

Anybody home?

It seems the page you're looking for is under renovation. Apologies for the inconvenience! Let us help you find what you're after with one of the links below.

Unknown Component

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

<UniformComposition /> does not have testimonial 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 Testimonial({ headline }) {
      return (
        <div>
          Testimonial!
          <UniformSlot name="asset" />
          <UniformSlot name="thumb" />
        </div>
      )
    }
    
    registerUniformComponent({ type: "testimonial", component: Testimonial })
    Props that your React component will receive
    {
      "headline": "Test",
      "component": {
        "type": "testimonial",
        "slots": {
          "asset": [
            {
              "type": "media",
              "parameters": {
                "src": {
                  "type": "text",
                  "value": "/test"
                }
              }
            }
          ],
          "thumb": [
            {
              "type": "media",
              "parameters": {
                "src": {
                  "type": "text",
                  "value": "/test"
                }
              }
            }
          ]
        },
        "parameters": {
          "headline": {
            "type": "text",
            "value": "Test"
          }
        }
      }
    }
  • Import the component into the file where <UniformComposition /> is defined, for example
    import "../components/Testimonial.tsx"

Need more help? Check out the documentation.