Customize Layout
Overview
You can change the default HTML of Velt Components using two patterns:
If you modify the component using both the
Standalone
and Hierarchical
patterns, the Hierarchical
pattern will override the Standalone
pattern. Patterns
a. Standalone Component Customization (recommended):
- This pattern lets you modify any Velt Component without the need to include all of its siblings. e.g., Composer submit button, Comment Dialog Header.
- By focusing on individual components, this approach simplifies the customization process and enhances maintainability.
- It provides greater flexibility and granular control over specific parts of the UI without needing to write the entire component structure.
b. Hierarchical Component Customization
- This pattern lets you modify any Velt Component by specifying its entire structure.
- This approach facilitates easier modifications to multiple sibling components simultaneously, offering a larger control on the component’s:
- structure and hierarchy.
- styling relationships between sibling components.
- The trade-off is writing more code.
Was this page helpful?