UNPKG

@bedrock-layout/stack

Version:

bedrock-layout stack layout primitive

24 lines (23 loc) 728 B
import { Gutter } from "@bedrock-layout/spacing-constants"; /** * Props for Stack component. */ export interface StackProps { /** * Sets space between each element. * @deprecated Use `gap` instead. */ gutter?: Gutter; /** * Sets space between each element. */ gap?: Gutter; /** * The `align` prop can be used to specify the inline alignment of the children. */ align?: "start" | "center" | "end" | "stretch"; } /** * The `Stack` is designed to literally stack items on top of each other while maintaining a consistent gutter between each item. */ export declare const Stack: import("@bedrock-layout/type-utils").PolymorphicForwardedRefComponent<"div", StackProps>;