UNPKG

react-pdf-builder

Version:
19 lines (18 loc) 964 B
import React from 'react'; import { DivProps } from '../basics/Div'; export interface BoxProps extends DivProps { /** Optional. The flex direction. Use `row` or `x` for horizontal row layout. Use `column` or `y` for vertical column layout. Default is `'row'`. */ dir?: 'row' | 'x' | 'column' | 'y'; /** Optional. When `true`, the Box will expand within its parent Box. */ grow?: boolean; /** Optional. When `true`, the Box will shrink within its parent Box. */ shrink?: boolean; /** Optional. Convenient way to quickly set the `gap` style. */ gap?: number; /** Optional. Convenient way to quickly set the `padding` style. */ padding?: number; } /** * Read the [full documentation for Box](https://justinmahar.github.io/react-pdf-builder/?path=/docs/documentation-components-box--docs) */ export declare const Box: ({ children, dir, grow, shrink, gap, padding, className, style, ...props }: BoxProps) => React.JSX.Element;