Skip to content

Group Box

Class: FxGroupBox · Tag: <fx-group-box>

The <fx-group-box> component is a titled enclosure (WPF/Avalonia GroupBox pattern) designed to group multiple interactive HMI components — faders, gauges, switches, displays — into logical console boards.


import '@salsafx/ui';

A telemetry board housing a radial gauge, potentiometer, and multi-state switch:

<fx-group-box title="Ventilation Substation Unit" background="#111827">
<fx-radial-gauge value="80" label="Fan Speed"></fx-radial-gauge>
</fx-group-box>

PropertyAttributeTypeDefaultDescription
titletitleString""Optional header title.
titleColortitle-colorString"#94a3b8"Color of the header title.
backgroundbackgroundString"#111827"Background color of the group box.
borderborderString"1px solid ..."Border style of the group box.
borderRadiusborder-radiusString"8px"Corner border radius.
paddingpaddingString"20px"Padding inside the group box.
gapgapString"20px"Spacing gap between child elements.
flexDirectionflex-directionString"column"Content flex direction ("column" or "row").
alignXalign-xString"center"Horizontal content alignment ("left", "center", "right", "stretch").
alignYalign-yString"center"Vertical content alignment ("top", "center", "bottom", "stretch").
NameDescription
defaultNested child controls.
PropertyDefaultDescription
--fx-font-familysans-serifFont stack for titles and nested labels.

classDiagram
    direction TB
    class FxElement
    class FxContainerElement
    class FxContentElement
    class FxGroupBox

    FxElement <|-- FxContainerElement
    FxContainerElement <|-- FxContentElement
    FxContentElement <|-- FxGroupBox

See also Architecture.