2024-03-08 14:13:55 -08:00
|
|
|
---
|
|
|
|
sidebar_position: 4
|
|
|
|
---
|
|
|
|
|
2024-03-12 11:31:46 -07:00
|
|
|
import Playground from '@site/src/components/Playground';
|
|
|
|
|
2024-03-08 14:13:55 -08:00
|
|
|
# Display
|
2024-03-12 11:31:46 -07:00
|
|
|
|
|
|
|
Display controls which layout specification to follow.
|
|
|
|
|
|
|
|
**Flex (default)**: The CSS Flexible Box Model specification.
|
|
|
|
|
|
|
|
**None**: The node is removed from the layout tree and will not be visible.
|
|
|
|
|
|
|
|
<Playground code={`<Layout config={{useWebDefaults: false}}>
|
|
|
|
<Node
|
|
|
|
style={{
|
|
|
|
width: 200,
|
|
|
|
height: 200,
|
2024-03-12 11:31:46 -07:00
|
|
|
padding: 10,
|
2024-03-12 11:31:46 -07:00
|
|
|
}}>
|
|
|
|
<Node style={{margin: 5, height: 50, display: 'flex'}} />
|
|
|
|
<Node style={{margin: 5, height: 50, display: 'none'}} />
|
|
|
|
</Node>
|
|
|
|
</Layout>`} />
|