# @types/ink-box

> TypeScript definitions for ink-box

Latest version **1.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/ink-box
pnpm add @types/ink-box
yarn add @types/ink-box
bun add @types/ink-box
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-11-07 |
| First published | 2020-06-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/ink-box
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ink-box
- npm.io page: https://npm.io/package/@types/ink-box

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 1.0.4 (latest) — 2023-11-07
- 1.0.2 (ts3.7) — 2021-10-14
- 1.0.1 (ts3.6) — 2021-07-08
- 1.0.0 (ts3.0) — 2020-06-01
- 1.0.3 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ink-box/index.d.ts)
````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](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [omjadas](https://github.com/omjadas).

---
_Source: https://npm.io/package/@types/ink-box · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
