Skip to content

Stack

Used to layout its children in a vertical or horizontal stack.

Item 1
Item 2
Item 1
Item 2
import {
Placeholder,
Stack,
} from '@fintech-sandpit/ui/react';
return (
<Stack className="gap-4">
<Placeholder className="h-20 w-40">
Item 1
</Placeholder>
<Placeholder className="h-20 w-40">
Item 2
</Placeholder>
</Stack>
);
import {
Placeholder,
Stack,
} from '@fintech-sandpit/ui/react';
return (
<Stack
orientation="horizontal"
class="gap-4"
>
<Placeholder className="h-40 w-20">
Item 1
</Placeholder>
<Placeholder className="h-40 w-20">
Item 2
</Placeholder>
</Stack>
);
NameTypeDefaultDescription
orientationOrientationverticalStack orientation
export type Orientation = 'vertical' | 'horizontal'