placeholder() html()

Skeleton lines shown while content loads (Bootstrap 5 placeholders).

html()->placeholder($extra = [])

Options

OptionMeaning
linesNumber of lines; default 3.
widthsWidth of each line in twelfths, repeated; default [12, 8, 6].
glow, size, color, class_add, idtrue, wave or false; xs / sm / lg; a colour; attributes.

Example

Code

return html()->placeholder() . html()->placeholder(['lines' => 2, 'widths' => [10, 4], 'glow' => 'wave', 'size' => 'lg', 'color' => 'primary']);

Bootstrap 3 and 5

Bootstrap 3 and 4 get an empty div (they have no placeholders).

See also: html/spinner