1.0.4 • Published 6 months ago

@types/ink-box v1.0.4

Weekly downloads
678
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for ink-box 1.0
// Project: https://github.com/sindresorhus/ink-box#readme
// Definitions by: omjadas <https://github.com/omjadas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 14 Oct 2021 10:01:28 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by omjadas.

1.0.4

6 months ago

1.0.3

7 months ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

4 years ago