# @types/ink-big-text

> TypeScript definitions for ink-big-text

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

## Install

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

## 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.2.4 |
| Published | 2023-11-07 |
| First published | 2020-10-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51433 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.2.4 (latest) — 2023-11-07
- 1.2.1 (ts3.6) — 2021-07-08
- 1.2.0 (ts3.2) — 2020-10-24
- 1.2.3 — 2023-10-18
- 1.2.2 — 2023-09-26

## README

# Installation
> `npm install --save @types/ink-big-text`

# Summary
This package contains type definitions for ink-big-text (https://github.com/sindresorhus/ink-big-text).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ink-big-text.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ink-big-text/index.d.ts)
````ts
import * as React from "react";

// note: BigTextProps.colors are based on cfonts (https://github.com/dominikwilkowski/cfonts). I will have commented out
// some of the accepted inputs. Becuase it also allows for hex colors, I decided to not narrow it down
// from a string type. A regex would be VERY useful here, but is unfortunately unsupported
// (see this issue: https://github.com/Microsoft/TypeScript/issues/6579). I will happily update this type if
// this feature ever gets added! That way the colors[] will be typed as any of the accepted colors OR a valid hex color.
// However until then, the type will be string.

// The official cfont docs state the following would be accepted (in addition to any valid hex):
// type DefinedColors =
//     | 'system'
//     | 'black'
//     | 'red'
//     | 'green'
//     | 'yellow'
//     | 'blue'
//     | 'magenta'
//     | 'cyan'
//     | 'white'
//     | 'gray'
//     | 'redBright'
//     | 'greenBright'
//     | 'yellowBright'
//     | 'blueBright'
//     | 'magentaBright'
//     | 'cyanBright'
//     | 'whiteBright';

interface BigTextProps {
    text: string;
    font?:
        | "block"
        | "slick"
        | "tiny"
        | "grid"
        | "pallet"
        | "shade"
        | "simple"
        | "simpleBlock"
        | "3d"
        | "simple3d"
        | "chrome"
        | "huge"
        | undefined;
    align?: "left" | "center" | "right" | undefined;
    colors?: string[] | undefined;
    backgroundColor?:
        | "transparent"
        | "black"
        | "red"
        | "green"
        | "yellow"
        | "blue"
        | "magenta"
        | "cyan"
        | "white"
        | undefined;
    letterSpacing?: number | undefined;
    lineHeight?: number | undefined;
    space?: boolean | undefined;
    maxLength?: number | undefined;
}

declare const BigText: React.FC<BigTextProps>;
export = BigText;

````

### 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 [aaronleopold](https://github.com/aaronleopold).

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