extends ../../layouts/LayoutComponent include ../../mixins/components/Placeholder append variables - var pageHeader = { title: 'Placeholder', description: "Use loading placeholders for your components or pages to indicate something may still be loading", url: `https://getbootstrap.com/docs/${bootstrapVersion}/components/placeholders/`, linkText: 'Placeholders on Bootstrap' } block component +PageHeader(pageHeader) +ComponentCard({ title: 'Examples', anchor: true, descriptionEl:`

In the example below, we take a typical card component and recreate it with placeholders applied to create a “loading card”. Size and proportions are the same between the two.

` }).mb-3 +PlaceholeHolderExample +ComponentCard({ title: 'Width', anchor: true, descriptionEl:`

You can change the width through grid column classes, width utilities, or inline styles.

` }).mb-3 +PlaceholderWidth +ComponentCard({ title: 'Color', anchor: true, descriptionEl:`

By default, the placeholder uses currentColor. This can be overriden with a custom color or utility class.

` }).mb-3 +PlaceholderColor +ComponentCard({ title: 'Sizing', anchor: true, descriptionEl:`

The size of .placeholders are based on the typographic style of the parent element. Customize them with sizing modifiers: .placeholder-lg, .placeholder-sm, or .placeholder-xs.

` }).mb-3 +PlaceholderSizing +ComponentCard({ title: 'Animation', anchor: true, descriptionEl:`

Animate placehodlers with .placeholder-glow or .placeholder-wave to better convey the perception of something being actively loaded.

` }) +PlaceholderAnimation