CardBorderSymbols
CardBorderSymbols is the full set of eight characters that make up a Card border. You rarely need to specify all of them — pass a Partial<CardBorderSymbols> inside BorderSymbolStyle.custom to override only the ones you care about.
Type Definition
topLeft/topRight— top cornersbottomLeft/bottomRight— bottom cornersdevideLeft/devideRight— divider connectors (used between title / body / footer)horizontal— top / bottom / divider bar charactervertical— left / right side character
type CardBorderSymbols = {
topLeft: string;
topRight: string;
bottomLeft: string;
bottomRight: string;
devideLeft: string;
devideRight: string;
horizontal: string;
vertical: string;
}
Usage
import { Card } from "ts-better-console";
const card = new Card("Hello", 30, {border: {}).render();symbols: {},custom: {},topLeft: "╔", topRight: "╗",},
bottomLeft: "╚", bottomRight: "╝",
horizontal: "═", vertical: "║",
devideLeft: "╠", devideRight: "╣",
Want to support this project?
If you find ts-better-console useful and want to support its development, consider starring the GitHub repository or buying me a coffee! Your support helps me dedicate more time to improving the library and adding new features.
Want to contribute to this project?
Contributions are welcome! If you're interested in improving the library, fixing bugs, or adding new features, feel free to check out the GitHub repository and submit a pull request. Whether you're a seasoned developer or new to open source, your contributions can make a difference!