Installation
npm install --save @types/ink-box
Summary
This package contains type definitions for ink-box (https://github.com/sindresorhus/ink-box#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ink-box.
index.d.ts
import * as React from "react";
type Alignment = "right" | "center" | "left";
type Spacing = number | {
top?: number | undefined;
right?: number | undefined;
bottom?: number | undefined;
left?: number | undefined;
};
interface BoxProps {
borderColor?: string | undefined;
borderStyle?: ("single" | "double" | "round" | "singleDouble" | "doubleSingle" | "classic") | {
topLeft?: string | undefined;
topRight?: string | undefined;
bottomLeft?: string | undefined;
bottomRight?: string | undefined;
horizontal?: string | undefined;
vertical?: string | undefined;
} | undefined;
children?: React.ReactNode;
dimBorder?: boolean | undefined;
padding?: Spacing | undefined;
margin?: Spacing | undefined;
float?: Alignment | undefined;
backgroundColor?: string | undefined;
align?: Alignment | undefined;
}
declare const Box: React.FC<BoxProps>;
export = Box;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/react
Credits
These definitions were written by omjadas.