circle-boltDynamic Component

The Avonni Dynamic Component component lets you embed one Dynamic Component within another.

Overview

Think of the Dynamic Component as a placeholder that displays another Dynamic Component you've already built. It's like having a pre-made section that you can drop into multiple places without rebuilding it each time.

Why use it?

Build once, use everywhere. Create a custom contact list, form section, or mini-dashboard as its own Dynamic Component, then embed it wherever you need it—on different pages or even inside other components.


How to Use It

1

Build your reusable component

Create the Dynamic Component you want to reuse (let's call this the "child" component). Add any input variables it needs to receive data from wherever it's placed

2

Embed it somewhere else

In your main component (the "parent"), drag a Dynamic Component from the Component Library onto the canvas

3

Choose which component to display

In the Properties Panel, select which Dynamic Component you want to show in this spot

4

Pass in data

If your child component has input variables, you'll see them listed in the properties. Connect them to the data sources from your parent component


Performance Considerations

Keep nesting simple. Avoid components inside components inside components—it gets messy and slow. Pass data between parent and child using input variables rather than making each component fetch its own data separately.

Last updated

Was this helpful?