Changelog Azalea Kit UI 101 Usage Customizing Utilities Form controls Laravel Vue FHIR Types Accessibility Icons Actions Button Button group Layout and structure Card Card section Care summary Care timeline Divider Empty state Footer Header Layout Stack Table Selection and input Calendar Checkbox Checkbox group Color picker Combobox Combobox option Input Input mask Memorable date Number input Option Phone input Radio Radio button Radio group Range Select SSN input Tag Textarea Toggle ZIP code input Images and icons Avatar Icon Icon button Logo Feedback indicators Badge Banner Progress bar Skeleton Skeleton body text Skeleton display text Skeleton thumbnail Spinner Typography Text Navigation Breadcrumb Breadcrumb item Dropdown Menu Menu item Menu label Navigation Nav group Nav item Nav toggle Pagination Tab Tab group Tab panel Top bar Tree Tree item User menu Overlays Dialog Popover Tooltip Utilities Collapsible FHIR address FHIR human name FHIR quantity FHIR questionnaire Format bytes Format date Format number Relative time Resize observer Split panel Tooltip Border Color Shadow Spacing Transition Typography Z-index Contributing Visual Tests Light Dark System

Skeleton Thumbnail

<ahi-skeleton-thumbnail> | AhiSkeletonThumbnail

Skeleton thumbnails are used to provide a low fidelity representation of an image before it appears on the page, and improves load times perceived by users. Use for thumbnails and avatars in our outside of card.

<ahi-skeleton-thumbnail></ahi-skeleton-thumbnail>

Examples

Sizes

Extra small

Thumbnails can be size using the size attribute.

<ahi-skeleton-thumbnail size="extraSmall"></ahi-skeleton-thumbnail>
<ahi-skeleton-thumbnail size="small"></ahi-skeleton-thumbnail>
<ahi-skeleton-thumbnail size="medium"></ahi-skeleton-thumbnail>
<ahi-skeleton-thumbnail size="large"></ahi-skeleton-thumbnail>

Shapes

Thumbnails can be shaped using the shape attribute.

<ahi-skeleton-thumbnail shape="circle"></ahi-skeleton-thumbnail>
<ahi-skeleton-thumbnail shape="rounded"></ahi-skeleton-thumbnail>
<ahi-skeleton-thumbnail shape="square"></ahi-skeleton-thumbnail>

Best practices

Skeleton thumbnails should:

  • Try to match the size and shape of the thumbnail to the content being loaded so it gives an accurate representation.

Importing

Script Bundler

To import this component using a script tag:

<script type="module" src="/path/to/azalea-kit-ui/dist/components/skeleton-thumbnail/skeleton-thumbnail.js"></script>

To import this component using a bundler:

import '@azaleahealth/azalea-kit-ui/dist/components/skeleton-thumbnail/skeleton-thumbnail.js';

Properties

Name Description Type Default
size Size of the thumbnail. 'extraSmall' | 'small' | 'medium' | 'large' 'medium'
effect Determines which effect the skeleton will use. 'pulse' | 'sheen' | 'none' 'sheen'
shape The shape of the thumbnail. 'circle' | 'square' | 'rounded' 'rounded'
updateComplete A read-only promise that resolves when the component has finished updating.

Learn more about properties and attributes.

CSS Parts

Name Description
base Deprecated. Use the skeleton-thumbnail part instead.
skeleton-thumbnail The component’s outer wrapper.
indicator The skeleton’s indicator which is responsible for it’s color.

Learn more about customizing CSS parts.