@wordpress/components
Version:
UI components for WordPress.
29 lines • 622 B
TypeScript
export default HStack;
/**
* `HStack` (Horizontal Stack) arranges child elements in a horizontal line.
*
* `HStack` can render anything inside.
*
* @example
* ```jsx
* import { HStack, Text, View } from `@wordpress/components/ui`;
*
* function Example() {
* return (
* <HStack>
* <View>
* <Text>Code</Text>
* </View>
* <View>
* <Text>is</Text>
* </View>
* <View>
* <Text>Poetry</Text>
* </View>
* </HStack>
* );
* }
* ```
*/
declare const HStack: import("../context").PolymorphicComponent<"div", import("./types").Props>;
//# sourceMappingURL=component.d.ts.map