Skip to content

Add ability to show block title over the border #87

@eugener

Description

@eugener

The title could be shown either on top or bottom of the block.
Here one example of such UI

The API might look like the following

var style = lipgloss.NewStyle().
    BorderStyle(lipgloss.NormalBorder()).
    BorderForeground(lipgloss.Color("63")).
    Title(lipgloss.Top, "Title")

There is also a need to change the title dynamically

  style.SetTitle((lipgloss.Top, "New Title"))

Titles which do not fit the width of the block can be automatically truncated at the front or back. The fact of truncation can be represented by adding character

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions