View Source GroupBox
<GroupBox>
Visual grouping of elements.
Overview
Use the label
and content
children to create a group box.
<GroupBox>
<Text template={:label}>Edit Actions</Text>
<Group template={:content}>
<Button phx-click="arrange">Arrange</Button>
<Button phx-click="update">Update</Button>
<Button phx-click="remove">Remove</Button>
</Group>
</GroupBox>
Alternatively, use the title
attribute instead of the label
child.
<GroupBox title="Edit Actions">
<Button phx-click="arrange">Arrange</Button>
<Button phx-click="update">Update</Button>
<Button phx-click="remove">Remove</Button>
</GroupBox>
Attributes
Children
label
- Describes the content of the group box.content
- The elements to group together.
SwiftUI Documentation
See SwiftUI.GroupBox
for more details on this View.
References
Link to this reference
title
The title to use.
Discussion
Takes precedence over a label
child.