jumbotron() html()

A large hero box with a heading and a body.

html()->jumbotron($data = [], $extra = [])

Options

OptionMeaning
$data['head', 'body' (HTML)].
class, idClasses; id.

Example

My big header

A simple hero unit for calling extra attention to featured content.

Learn more

Code

return html()->jumbotron([
    'head' => 'My big header',
    'body' => '<p>A simple hero unit for calling extra attention to featured content.</p><p><a class="btn btn-primary btn-lg" role="button">Learn more</a></p>',
]);

Bootstrap 3 and 5

Bootstrap 3 jumbotron; Bootstrap 5 has none: a p-5 mb-4 bg-body-tertiary rounded-3 box.

See also: html/panel