Configuring Components with Dynamic Attributes
Authors:
Cameron Johns, Cille Schliebitz, Anita Gu
Changed on:
3 Feb 2025
Overview
This lesson explores the use of Dynamic Attributes within components, a powerful mechanism for making component content configurable. We'll demonstrate how to create a component, in this case an
`InfoBox`
Key points
- Dynamic Content: Learn how Dynamic Attributes enable you to configure the information displayed within a component without modifying its code.
- Manifest-Driven Configuration: Understand how to define and configure Dynamic Attributes within the Manifest, controlling the content of components.
- InfoBox Example: This lesson uses an InfoBox component that appears on pin click as a practical example of using Dynamic Attributes.
- Flexibility and Reusability: Dynamic Attributes make components more flexible and reusable, as their content can be easily adapted through Manifest configuration.
Watch the video below to learn how to use
`DynamicAttributes`
`DynamicAttributes`
For example, the
`fc.card.attribute`
`fc.list`
For this scenario, a small
`InfoBox`
`InfoBox`
`DynamicAttributes`
Right-click to download the code for the InfoBox.tsx file here.
To learn more about Dynamic Attributes, see UX Configuration - Common Concepts > Dynamic Attributes section
Using DynamicAttributes Within Components
This video explains how to use
`DynamicAttributes`