|
@@ -1,12 +1,12 @@
|
|
|
---
|
|
|
title: Placeholder
|
|
|
-summary: Placeholder is used to reserve space for content that soon will appear in a layout.
|
|
|
+summary: Placeholder is used to reserve space for content that will soon appear in a layout.
|
|
|
description: Reserve space for upcoming content.
|
|
|
---
|
|
|
|
|
|
## Placeholder line
|
|
|
|
|
|
-Placeholder lines can contain have lines of text. Their length is different and depends on the `col-` class.
|
|
|
+Placeholder lines can contain lines of text. Their length is different and depends on the `col-` class.
|
|
|
|
|
|
```html example columns={1}
|
|
|
<div class="placeholder col-9"></div>
|
|
@@ -15,7 +15,7 @@ Placeholder lines can contain have lines of text. Their length is different and
|
|
|
<div class="placeholder col-8"></div>
|
|
|
```
|
|
|
|
|
|
-However, it may be useful, however, to specify the full width in order to fit the content more effectively.
|
|
|
+However, it may be useful to specify the full width in order to fit the content more effectively.
|
|
|
|
|
|
```html example columns={1}
|
|
|
<div class="placeholder col-12"></div>
|
|
@@ -24,7 +24,7 @@ However, it may be useful, however, to specify the full width in order to fit th
|
|
|
<div class="placeholder col-12"></div>
|
|
|
```
|
|
|
|
|
|
-You can also move the lines to right or to center:
|
|
|
+You can also move the lines to the right or center them:
|
|
|
|
|
|
```html example columns={1}
|
|
|
<div class="text-end">
|
|
@@ -41,7 +41,7 @@ You can also move the lines to right or to center:
|
|
|
|
|
|
## Placeholder heading
|
|
|
|
|
|
-A placeholder can contain also a header element looks like header:
|
|
|
+A placeholder can also contain an element that looks like a header:
|
|
|
|
|
|
```html example columns={1}
|
|
|
<div class="placeholder col-9 mb-3"></div>
|
|
@@ -51,13 +51,13 @@ A placeholder can contain also a header element looks like header:
|
|
|
|
|
|
## Placeholder avatar
|
|
|
|
|
|
-You can use a placeholder, which will look like an avatar. You can use the `avatar` component, and get the image in the right proportions.
|
|
|
+You can use a placeholder that will look like an avatar. You can use the `avatar` component, and get the image in the right proportions.
|
|
|
|
|
|
```html
|
|
|
<div class="avatar placeholder"></div>
|
|
|
```
|
|
|
|
|
|
-Look at the example below to see how the avatar placeholder looks like.
|
|
|
+Look at the example below to see how the avatar placeholder looks.
|
|
|
|
|
|
```html example columns={1} centered
|
|
|
<div class="row">
|
|
@@ -71,7 +71,7 @@ Look at the example below to see how the avatar placeholder looks like.
|
|
|
</div>
|
|
|
```
|
|
|
|
|
|
-You can also use the `avatar` component with different sizes. Look at the example below to see how the avatar placeholder looks like.
|
|
|
+You can also use the `avatar` component with different sizes. Look at the example below to see how the avatar placeholder looks.
|
|
|
|
|
|
```html example centered separated
|
|
|
<div class="avatar avatar-xl placeholder"></div>
|
|
@@ -84,9 +84,7 @@ You can also use the `avatar` component with different sizes. Look at the exampl
|
|
|
|
|
|
## Placeholder image
|
|
|
|
|
|
-You can use a placeholder, which will look like a picture. You can use the `ratio` component, and get the image in the right proportions.
|
|
|
-
|
|
|
-You can also use the `ratio` component, and get the image in the right proportions.
|
|
|
+You can use a placeholder that will look like a picture. You can use the `ratio` component, and get the image in the right proportions.
|
|
|
|
|
|
```html example columns={1} height={500} scrollable separated vertical
|
|
|
<div class="ratio ratio-1x1 placeholder">
|
|
@@ -105,7 +103,7 @@ You can also use the `ratio` component, and get the image in the right proportio
|
|
|
|
|
|
## Placeholder color
|
|
|
|
|
|
-By default, the `placeholder` uses `currentColor`. This can be overridden with a custom color or utility class. Full color classes are available for background colors.
|
|
|
+By default, the placeholder uses `currentColor`. This can be overridden with a custom color or utility class. Full color classes are available for background colors.
|
|
|
|
|
|
```html
|
|
|
<span class="placeholder col-12 bg-dark"></span>
|
|
@@ -127,7 +125,7 @@ Look at the example below to see how the color affects the placeholder.
|
|
|
|
|
|
## Placeholder sizing
|
|
|
|
|
|
-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`.
|
|
|
+The sizes of placeholders are based on the typographic style of the parent element. Customize them with sizing modifiers: `.placeholder-lg`, `.placeholder-sm`, or `.placeholder-xs`.
|
|
|
|
|
|
```html example columns={1}
|
|
|
<span class="placeholder col-12 placeholder-lg"></span>
|