Skip to main content

Text element

Hosttech\SlackBlockKitBuilder\Elements\RichText\RichTextItemTextElement

Setting bold / italic

Set bold using bold():

RichTextItemTextElement::make('Hello world')
->bold(); // text will be displayed in bold

Set italic using italic():

RichTextItemTextElement::make('Hello world')
->italic(); // text will be displayed in italic