Skip to main content

Context element

Hosttech\SlackBlockKitBuilder\Elements\ContextElement

Setting content

Using static make():

ContextElement::make(':rotating_light: *EMERGENCY*');

Using content():

ContextElement::make('Default text')
->when(1 === 1, fn (ContextElement $element) => $element->content();