import { PolymorphicComponent, CSS } from './_shared'; import { FlexProps } from './Flex'; export declare type HStackAlignment = | 'bottom' | 'bottomLeft' | 'bottomRight' | 'center' | 'edge' | 'left' | 'right' | 'stretch' | 'top' | 'topLeft' | 'topRight'; export declare type HStackProps = Omit & { /** * Determines how the child elements are aligned. * * * `top`: Aligns content to the top. * * `topLeft`: Aligns content to the top/left. * * `topRight`: Aligns content to the top/right. * * `left`: Aligns content to the left. * * `center`: Aligns content to the center. * * `right`: Aligns content to the right. * * `bottom`: Aligns content to the bottom. * * `bottomLeft`: Aligns content to the bottom/left. * * `bottomRight`: Aligns content to the bottom/right. * * `edge`: Aligns content to the edges of the container. * * `stretch`: Stretches content to the edges of the container. * * @default 'edge' * * @example *```jsx * import { HStack, Text, View } from `@wp-g2/components` * import { ui } from `@wp-g2/styles` * * function Example() { * return ( * * * Ana * * * Elsa * * * Olaf * * * ); * } *``` */ alignment?: HStackAlignment | CSS['alignItems']; /** * The amount of space between each child element. Spacing in between each child can be adjusted by using `spacing`. * The value of `spacing` works as a multiplier to the library's grid system (base of `4px`). * * @default 2 * * @example * ```jsx * import { HStack, Text, View } from `@wp-g2/components` * import { ui } from `@wp-g2/styles` * * function Example() { * return ( * * * Ana * * * Elsa * * * Olaf * * * ); * } *``` */ spacing?: CSS['width']; }; /** * `HStack` (Horizontal Stack) arranges child elements in a horizontal line. * * @remarks * `HStack` can render anything inside. * * @example * ```jsx * import { HStack, Text, View } from `@wp-g2/components` * import { ui } from `@wp-g2/styles` * * function Example() { * return ( * * * Ana * * * Elsa * * * Olaf * * * ); * } * ``` */ export declare const HStack: PolymorphicComponent<'div', HStackProps>;