UNPKG

@wordpress/components

Version:
28 lines 813 B
/** * `HStack` (Horizontal Stack) arranges child elements in a horizontal line. * * `HStack` can render anything inside. * * ```jsx * import { * __experimentalHStack as HStack, * __experimentalText as Text, * } from `@wordpress/components`; * * function Example() { * return ( * <HStack> * <Text>Code</Text> * <Text>is</Text> * <Text>Poetry</Text> * </HStack> * ); * } * ``` */ export declare const HStack: import("../context").WordPressComponent<"div", Omit<import("../flex/types").FlexProps, "gap" | "align"> & { alignment?: import("./types").HStackAlignment | import("react").CSSProperties["alignItems"]; spacing?: import("react").CSSProperties["width"]; } & import("react").RefAttributes<any>, true>; export default HStack; //# sourceMappingURL=component.d.ts.map