QUI React

Skeleton

A skeleton is a placeholder for content that is being loaded in order to provide a pleasant user experience.

import {QSkeleton} from "@qui/react"

Examples

Variants

Use the variant property to change component appearance. When variant is set to rounded, component will have a border radius applied.

Animations

Use the animation property to set animation type or disable it.

Inferred Dimensions

In addition to accepting width and height props, the component can infer the dimensions of its child elements.

Heading XL

Heading XL

API

Input

Name & DescriptionOption(s)Default
Animation for the skeleton.
| 'pulse'
| 'none'
'pulse'
The component used for the root node. It can be a React component or element.
| ElementType
| ComponentType
'div'
React children prop.
ReactNode
The className property of the Element interface gets and sets the value of the class attribute of the specified element.
string
The height of the skeleton. If a child element is supplied, this property will be ignored.
string
'auto'
HTML role attribute applied to the skeleton element.
string
'status'
The style global attribute contains CSS styling declarations to be applied to the element.
CSSProperties
The variant for the skeleton.
| 'circular'
| 'rectangular'
| 'rounded'
'rounded'
The width of the skeleton. If a child element is supplied, this property will be ignored.
string
'auto'
Type
| 'pulse'
| 'none'
Default
'pulse'
Description
Animation for the skeleton.
Type
| ElementType
| ComponentType
Default
'div'
Description
The component used for the root node. It can be a React component or element.
Description
React children prop.
Type
string
Description
The className property of the Element interface gets and sets the value of the class attribute of the specified element.
Type
string
Default
'auto'
Description
The height of the skeleton. If a child element is supplied, this property will be ignored.
Type
string
Default
'status'
Description
HTML role attribute applied to the skeleton element.
Description
The style global attribute contains CSS styling declarations to be applied to the element.
Type
| 'circular'
| 'rectangular'
| 'rounded'
Default
'rounded'
Description
The variant for the skeleton.
Type
string
Default
'auto'
Description
The width of the skeleton. If a child element is supplied, this property will be ignored.