Skip to main content

Stack

Description​

Another abstraction of flex components that forces simplifies building flex-based layouts. This is supposed to integrate a component that's close to how Figma's auto layout works.

Demo​

import { Stack } from "@neui/layout";
Live Editor
Result
Loading...
import { HStack } from "@neui/layout";
Live Editor
Result
Loading...
import { VStack } from "@neui/layout";
Live Editor
Result
Loading...

Props​

CSS PropExtendsRenderAs PropRenders by default
FlexFlex
NameCSS Rule(s)Description
spacinggapSets the spacing between items