Components
Container

Container

A super customisable container that can have a header, and can be expanded and collapsed. (Height is automatically determined).

Properties

NameTypeDescription
WidthFusion.UsedAs?The width of the container. (Defaults to UDim.new(1, 0)).
HeaderHeaderPropsThe properties for the container's header (omit if you do not want one).

Header Properties (HeaderProps)

NameTypeDescription
TextFusion.UsedAs<string>The Text (title) for the header.
IsExpandedFusion.UsedAs<boolean>?If the container should be expanded.
ContentFusion.UsedAs<Fusion.Child>?The header content (aligned to the right).
DisabledFusion.UsedAs<boolean>?If the header is to be disabled. Designed for toggling the header via a state object.

Example

Scope:Container {
  Header = { Text = "My Awesome Container 🚀" },
  [Children] = {
    Scope:TextLabel {
      Text = "Content Goes Here :)!\nContent Goes Here :)!\nContent Goes Here :)!",
      LineHeight = 1.4,
    },
    
    Scope:PaddingLarge()
  }
}