Skeleton
A placeholder for content to load
Class props
Skeleton component
A placeholder for content to load
html
<o-skeleton></o-skeleton>
Props
Prop name | Description | Type | Values | Default |
---|---|---|---|---|
active | Show or hide loader | boolean | - | true |
animated | Show a loading animation | boolean | - | From config: skeleton: { |
circle | Show a circle shape | boolean | - | false |
count | Number of shapes to display | number | - | 1 |
height | Custom height | number|string | - | |
override | Override existing theme classes completely | boolean | - | |
position | Skeleton position in relation to the element | string | left , centered , right | "left" |
rounded | Enable rounded style | boolean | - | From config: skeleton: { |
size | Size of skeleton | string | small , medium , large | |
width | Custom width | number|string | - |
Sass variables
Current theme ➜ Oruga Base
SASS Variable | Default |
---|---|
$skeleton-background | linear-gradient( 90deg, $grey-lighter 25%, rgba($grey-lighter, 0.5) 50%, $grey-lighter 75%) |
$skeleton-border-radius | $base-border-radius |
$skeleton-duration | 1.5s |
$skeleton-margin | 0.5rem 0 0 0 |
See ➜ 📄 Full scss file
Current theme ➜ Oruga Full
SASS Variable | Default |
---|---|
$skeleton-background | linear-gradient( 90deg, $grey-lighter 25%, rgba($grey-lighter, 0.5) 50%, $grey-lighter 75%) |
$skeleton-border-radius | $base-border-radius |
$skeleton-duration | 1.5s |
$skeleton-margin | 0.5rem 0 0 0 |
See ➜ 📄 Full scss file
Current theme ➜ Bulma
The theme does not have any custom variables for this component.
Current theme ➜ Bootstrap
SASS Variable | Default |
---|---|
$skeleton-bg-color | $dark-bg-subtle |
$skeleton-bg | linear-gradient( 90deg, $skeleton-bg-color 25%, rgba($skeleton-bg-color, 0.5) 50%, $skeleton-bg-color 75%) |
$skeleton-duration | 1.5s |
$skeleton-margin | 0.5rem 0 0 0 |
See ➜ 📄 Full scss file