You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use `Layout.Wrap()` to create a layout where items flow and wrap to the next line when they run out of space. Try resizing the window to see the wrapping behavior:
153
+
154
+
```csharp demo-tabs
155
+
Layout.Wrap().Gap(2)
156
+
|newBadge("Tag 1").Primary()
157
+
|newBadge("Tag 2").Secondary()
158
+
|newBadge("Tag 3")
159
+
|newBadge("Tag 4").Primary()
160
+
|newBadge("Tag 5").Secondary()
161
+
|newBadge("Tag 6")
162
+
|newBadge("Tag 7").Primary()
163
+
|newBadge("Tag 8").Secondary()
164
+
|newBadge("Tag 9")
165
+
|newBadge("Tag 10").Primary()
166
+
|newBadge("Tag 11").Secondary()
167
+
```
168
+
169
+
### AlignSelf
170
+
171
+
Override alignment for individual children using `.AlignSelf()`. In a horizontal layout, this controls vertical positioning of each child independently:
The Layout methods integrate seamlessly with specialized layout [widgets](../../02_Widgets/02_Layouts/_Index.md) and [Card](../../02_Widgets/03_Common/04_Card.md):
Complete example showing padding, margins, background colors, and parent padding control. Use [Thickness](../../04_ApiReference/Ivy/Thickness.md) for padding and margin, and [Colors](../../04_ApiReference/Ivy/Colors.md) for background. Alignment options are in [Align](../../04_ApiReference/Ivy/Align.md):
0 commit comments