Skip to main content

List element

Hosttech\SlackBlockKitBuilder\Elements\RichText\RichTextListElement

Allowed elements

Setting indent / border / offset

Set indent using indent():

RichTextListElement::make()
->indent(5); // fifth level indentation

Set border width using border():

RichTextListElement::make()
->border(5); // border will be 5px wide

Set offset using offset():

RichTextListElement::make()
->offset(5); // list items will be offset by 5px