UNPKG

@duffel/components

Version:

Component library to build your travel product with Duffel.

29 lines (28 loc) 881 B
import * as React from "react"; type DivProps = JSX.IntrinsicElements["div"]; export interface HSpaceProps extends DivProps { /** * A space-delimited list of class names to pass along to a child element. */ className?: string; /** * The vertical spacing between each child element */ space: 0 | 4 | 8 | 12 | 16; /** * If you'd like all children inside your horizontal space container * to be vertically aligned to the center of the div, you can set `alignCenter` to `true` * * Default: `false` */ alignCenter?: boolean; /** * If you'd like all children inside your horizontal space container * to be spread out from one another, you can set `spaceBetween` to `true` * * Default: `false` */ spaceBetween?: boolean; } export declare const HSpace: React.FC<HSpaceProps>; export {};