@bedrock-layout/stack
Version:
bedrock-layout stack layout primitive
23 lines (22 loc) • 745 B
TypeScript
import { Gutter, PaddingConfig } from "@bedrock-layout/spacing-constants";
/**
* Props for Stack component.
*/
export interface StackProps {
/**
* 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";
/**
* Sets padding on the component using design system spacing scale.
*/
padding?: PaddingConfig;
}
/**
* 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>;