Note: You can check the Avalonia docs for the and if you need more information.
For Avalonia.FuncUI's DSL properties you can check
The Expander (known as accordion as well) is a control that allows a user to show or hide content to make more room for relevant information or to show detailed information about the current view
Usage
Set Label
Expander.create [
Expander.header "Check Logs"
// the Logs property may be an extremely long text that's why we use an expander
// hide the logs unless you want to see them
Expander.content (TextBlock.create [ TextBlock.text state.Logs ])
]
Change Expand Direction you can set in which direction the content should flow