AddTitle adds a styled title to the dialog.
(title string)
| 205 | |
| 206 | // AddTitle adds a styled title to the dialog. |
| 207 | func (dc *Content) AddTitle(title string) *Content { |
| 208 | dc.parts = append(dc.parts, RenderTitle(title, dc.width, styles.DialogTitleStyle)) |
| 209 | return dc |
| 210 | } |
| 211 | |
| 212 | // AddSeparator adds a horizontal separator line. |
| 213 | func (dc *Content) AddSeparator() *Content { |