mirror of
https://github.com/charmbracelet/lipgloss.git
synced 2024-10-26 22:57:49 +03:00
docs: update readme example
This commit is contained in:
parent
29a309cde1
commit
abee24064a
@ -173,12 +173,10 @@ var style = lipgloss.NewStyle().
|
||||
Setting a minimum width and height is simple and straightforward.
|
||||
|
||||
```go
|
||||
var style = lipgloss.NewStyle().
|
||||
var style = lipgloss.NewStyle("What’s for lunch?").
|
||||
Width(24).
|
||||
Height(32).
|
||||
Foreground(lipgloss.Color("63"))
|
||||
|
||||
var str = lipgloss.Render(style, "What’s for lunch?")
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user