SectionStack
Description
SectionStack is a container component used to organize content into distinct sections presented in a vertical layout. It handles sections with animated transitions for adding titles and content cards. Use SectionStack when you need to display grouped, expandable content blocks with a clear separation between titles and content.
Usage
You can instantiate a SectionStack using the static helper method from the Tesserae.UI class. Sections can be added, cleared, or animated individually.
API reference
public class SectionStack : StackA stack component that supports animated sections.
Constructors
Methods
public void AddAnimated(IComponent component, bool grow = false, bool shrink = false, string customPadding = "", bool cardStyle = true)Adds a component as an animated section.
Parameters
- component
- The component.
- grow
- Whether the section should grow.
- shrink
- Whether the section should shrink.
- customPadding
- Custom padding for the section.
public void AddAnimatedTitle(IComponent component)Adds a component as an animated title.
Parameters
- component
- The component.
public SectionStack Secondary()Styles the component using the secondary tone.