Stack
<Stack /> is a flex box which can wrap children components.
Loading...
How to use
import { VStack } from '@vibrant-ui/components';
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
| direction(*) | horizontal | vertical | - | Set flexDirection |
| spacing | number | - | Set space between children components of Stack |
| overflow | hidden | visible | - | Set property when overflows |
| width | number | auto | fit-content | max-content | min-content | - | Set width |
| minWidth | number | auto | fit-content | max-content | min-content | - | Set minimum width |
| maxWidth | number | auto | fit-content | max-content | min-content | none | - | Set maximum width |
| height | number | auto | fit-content | max-content | min-content | - | Set height |
| minHeight | number | auto | fit-content | max-content | min-content | - | Set minimum height |
| maxHeight | number | auto | fit-content | max-content | min-content | none | - | Set maximum height |
| position | absolute | relative | - | Set position |
| top | number | string | - | Set top space value of Stack |
| right | number | string | - | Set right space value of Stack |
| bottom | number | string | - | Set bottom space value of Stack |
| left | number | string | - | Set left space value of Stack |
| zIndex | number | - | Set z index of Stack |