BodyOptions
BodyOptions configures the main content area of a Card. It controls how the body text is aligned and styled independently of the title and footer sections.
Type Definition
align: Horizontal alignment of the body text —"left","center", or"right". Defaults to"left".style: AStyleOptionsobject to apply color and text decoration to the body content.
type BodyOptions = {
align?: Alignment;
style?: StyleOptions;
}
Usage
Pass BodyOptions as the body property of CardOptions:
import { Card } from "ts-better-console";
const card = new Card("All systems running.", 50, {body: {}).render();align: "center",},
style: { color: "green" },
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!