Documentation
Paragraph

Paragraph

Paragraph is a component that displays a series of lines or text.

Usage Example

n.paragraph({
  lines = "[close]",
  align = "right",
  is_focusable = false,
})
 
n.paragraph({
  autofocus = true,
  lines = {
    n.line(n.text("Hello", "Boolean"), " ", n.text("World", "Italic")),
    n.line(n.text("nui.components", "String")),
  },
  align = "center",
})

Properties

align

Type
'left' | 'center' | 'right'

lines

Type
string | string[] | NuiLine | NuiLine[]

truncate

Type
boolean

linebreak

Default value
true
Type
boolean

prepare_lines

Type
fun(lines: NuiLine[], component: Checkbox): nil

max_lines

Type
number