Skip to content

Latest commit

 

History

History
79 lines (41 loc) · 1.29 KB

File metadata and controls

79 lines (41 loc) · 1.29 KB

tinky


tinky / TextStyles

Interface: TextStyles

Common text styling props used by components like Text and Separator.

Extended by

Properties

backgroundColor?

readonly optional backgroundColor?: LiteralUnion<ForegroundColorName, string>

Same as color, but for the background.


bold?

readonly optional bold?: boolean

Make the text bold.


color?

readonly optional color?: LiteralUnion<ForegroundColorName, string>

Change text color. Tinky uses Ansis under the hood, so all its functionality is supported.


dimColor?

readonly optional dimColor?: boolean

Dim the color (make it less bright).


inverse?

readonly optional inverse?: boolean

Inverse background and foreground colors.


italic?

readonly optional italic?: boolean

Make the text italic.


strikethrough?

readonly optional strikethrough?: boolean

Make the text crossed out with a line.


underline?

readonly optional underline?: boolean

Make the text underlined.