yarn add @twilio-paste/skeleton-loader - or - yarn add @twilio-paste/core
import {SkeletonLoader} from '@twilio-paste/core/skeleton-loader';
import {Text} from '@twilio-paste/core/text';
const SkeletonLoaderExample = () => {
const [loaded] = React.useState(false);
return <>{loaded ? <Text as="span">Single line of text</Text> : <SkeletonLoader width="100px" />}</>;
};
borderRadius
- Type
any
- Default
borderRadius20
element
Overrides the default element name to apply unique styles with the Customization Provider
- Type
any
- Default
SKELETON_LOADER
height
- Type
any
- Default
sizeIcon20
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.