Skip to main content

Link element

Hosttech\SlackBlockKitBuilder\Elements\RichText\RichTextItemLinkElement

Setting bold / italic

Set bold using bold():

RichTextItemLinkElement::make('https://google.com')
->content('Hello world')
->bold(); // text will be displayed in bold

Set italic using italic():

RichTextItemLinkElement::make('https://google.com')
->content('Hello world')
->italic(); // text will be displayed in italic