1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: MIT
3
4import { Theme } from "../theme.slint";
5
6export component GroupBox {
7 in property <string> title <=> i-title.text;
8 in property <length> spacing;
9
10 layout := VerticalLayout {
11 spacing: Theme.spaces.medium;
12
13 i-title := Text {
14 horizontal-alignment: left;
15 color: Theme.palette.white;
16 font-size: Theme.typo.header.size;
17 font-weight: Theme.typo.header.weight;
18 }
19
20 i-layout := HorizontalLayout {
21 spacing: root.spacing;
22
23 @children
24 }
25 }
26}