import React from 'react'; import { Except } from 'type-fest'; import { Styles } from '../styles'; import { DOMElement } from '../dom'; export declare type Props = Except & { /** * Margin on all sides. Equivalent to setting `marginTop`, `marginBottom`, `marginLeft` and `marginRight`. * * @default 0 */ readonly margin?: number; /** * Horizontal margin. Equivalent to setting `marginLeft` and `marginRight`. * * @default 0 */ readonly marginX?: number; /** * Vertical margin. Equivalent to setting `marginTop` and `marginBottom`. * * @default 0 */ readonly marginY?: number; /** * Padding on all sides. Equivalent to setting `paddingTop`, `paddingBottom`, `paddingLeft` and `paddingRight`. * * @default 0 */ readonly padding?: number; /** * Horizontal padding. Equivalent to setting `paddingLeft` and `paddingRight`. * * @default 0 */ readonly paddingX?: number; /** * Vertical padding. Equivalent to setting `paddingTop` and `paddingBottom`. * * @default 0 */ readonly paddingY?: number; }; /** * `` is an essential Ink component to build your layout. It's like `
` in the browser. */ declare const Box: React.ForwardRefExoticComponent & { /** * Margin on all sides. Equivalent to setting `marginTop`, `marginBottom`, `marginLeft` and `marginRight`. * * @default 0 */ readonly margin?: number | undefined; /** * Horizontal margin. Equivalent to setting `marginLeft` and `marginRight`. * * @default 0 */ readonly marginX?: number | undefined; /** * Vertical margin. Equivalent to setting `marginTop` and `marginBottom`. * * @default 0 */ readonly marginY?: number | undefined; /** * Padding on all sides. Equivalent to setting `paddingTop`, `paddingBottom`, `paddingLeft` and `paddingRight`. * * @default 0 */ readonly padding?: number | undefined; /** * Horizontal padding. Equivalent to setting `paddingLeft` and `paddingRight`. * * @default 0 */ readonly paddingX?: number | undefined; /** * Vertical padding. Equivalent to setting `paddingTop` and `paddingBottom`. * * @default 0 */ readonly paddingY?: number | undefined; } & { children?: React.ReactNode; } & React.RefAttributes>; export default Box;