@types/ink-box
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ink-box

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

4.51 kB

Total Files

5

Last publish

Collaborators

  • types