Display
Atomic Props | CSS Properties |
---|---|
block | display: block; |
inline | display: inline; |
inline-block | display: inline-block; |
flex | display: flex; |
inline-flex | display: inline-flex; |
grid | display: grid; |
hidden | display: none; |
display={value} | display: {value}; |
Block
Use block
props to create a block-level element.
Result
Loading...
Live Editor
Inline
Use inline
props to create an inline element.
Result
Loading...
Live Editor
Inline Block
Use inlineBlock
props to create an inline block-level element.
Result
Loading...
Live Editor
Flex
Use flex
props to create a block-level flex container.
Result
Loading...
Live Editor
Inline Flex
Use inlineFlex
props to create an inline flex container.
Result
Loading...
Live Editor
Grid
Use grid
props to create a grid container.
Result
Loading...
Live Editor
Hidden
Use hidden
props to set an element to display: none
.
Result
Loading...
Live Editor
Display
if the preset atomic props can not be satisfied,you can use display
props.
Result
Loading...
Live Editor