TitleOptions
Less than 1 minute
Options for configuring the title display in the OutputUI
class.
Example
const titleOptions: TitleOptions = {
border: 'double',
padding: 4,
colorizeBorder: str => `\x1b[34m${str}\x1b[0m`,
colorizeTitle: str => `\x1b[32m${str}\x1b[0m`,
};
Properties
Property | Type | Description |
---|---|---|
keyof | The type of border to use. | |
( | Function to colorize the border. | |
( | Function to colorize the title text. | |
| The padding around the title text. |