A rectangle that lays its children out with flexbox.
The base of every layout here: Column and Row are this with flexDirection preset.
Column
Row
flexDirection
Layout, style and children.
A descriptor the renderer turns into a node.
Box({ width: 200, padding: 16, backgroundColor: '#0b1120', borderRadius: 12, children: [Text('hello', { color: '#f8fafc' })],}) Copy
Box({ width: 200, padding: 16, backgroundColor: '#0b1120', borderRadius: 12, children: [Text('hello', { color: '#f8fafc' })],})
A rectangle that lays its children out with flexbox.
The base of every layout here:
ColumnandRoware this withflexDirectionpreset.