frame

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Draw

func Draw(title string, position lipgloss.Position, content string, styles Styles) string

Draw draws a frame with a title around the content.

Types

type Styles

type Styles struct {
	// Title is the style for the title.
	Title lipgloss.Style
	// Border is the style for the border.
	Border lipgloss.Style
}

Styles formats the frame.

func (Styles) BorderSize

func (s Styles) BorderSize() (int, int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL