boxen icon indicating copy to clipboard operation
boxen copied to clipboard

feat: Add subtitle option

Open dusktreader opened this issue 6 months ago • 4 comments

It would be really nice to be able to include a subtitle as well. This would be rendered on the bottom border. It could be configured exactly the same as the title.

Example:

┌ species ───────┐
│                │
│ jawa ewok hutt │
│                │
└ (four letters) ┘

dusktreader avatar Sep 10 '25 18:09 dusktreader

I wouldn't call that subtitle, rather footer.

sindresorhus avatar Sep 10 '25 19:09 sindresorhus

I wouldn't call that subtitle, rather footer.

I didn't see this till I made the PR.

Something to consider though: "footer" implies a "header", while "subtitle" implies a "title".

dusktreader avatar Sep 10 '25 20:09 dusktreader

subtitle is wrong here. Subtitles go below titles but still at the top, not at the bottom of a container. This text literally appears at the bottom border, making it a footer by definition. The fact that the top option is called title doesn't change what we should call bottom content.

sindresorhus avatar Sep 13 '25 11:09 sindresorhus

subtitle is wrong here. Subtitles go below titles but still at the top, not at the bottom of a container. This text literally appears at the bottom border, making it a footer by definition. The fact that the top option is called title doesn't change what we should call bottom content.

Renamed to "footer" in latest commit

dusktreader avatar Sep 18 '25 18:09 dusktreader