UNPKG

@wordpress/components

Version:
30 lines 1.14 kB
/// <reference types="react" /> /** * `VStack` (or Vertical Stack) is a layout component that arranges child * elements in a vertical line. * * `VStack` can render anything inside. * * ```jsx * import { * __experimentalText as Text, * __experimentalVStack as VStack, * } from `@wordpress/components`; * * function Example() { * return ( * <VStack> * <Text>Code</Text> * <Text>is</Text> * <Text>Poetry</Text> * </VStack> * ); * } * ``` */ export declare const VStack: import("../ui/context").WordPressComponent<"div", Omit<import("../h-stack/types").Props, "spacing" | "alignment"> & { alignment?: "initial" | "left" | "right" | (string & {}) | "bottom" | "top" | "-moz-initial" | "inherit" | "revert" | "unset" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "normal" | "self-end" | "self-start" | "edge" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined; spacing?: import("csstype").Property.Width<string | number> | undefined; } & import("react").RefAttributes<any>, true>; export default VStack; //# sourceMappingURL=component.d.ts.map