Components
Skeleton
Skeleton
Skeleton components are placeholders that provide a visual indication of where content will appear while it is loading. They help improve user experience by reducing perceived loading time and creating a smoother transition when the actual content is loaded.
Default skeleton
<.skeleton />
Image skeleton
<.skeleton kind={:image} />
Video skeleton
Loading...
<.skeleton kind={:video} />
Text skeleton
<.skeleton kind={:text} />
Card skeleton
<.skeleton kind={:card} />
Widget skeleton
<.skeleton kind={:widget} />
List skeleton
<.skeleton kind={:list} />
Testimonial skeleton
<.skeleton kind={:testimonial} />
Properties
attr(:kind, :atom,
default: :default,
doc: "skeleton",
values: [:default, :image, :video, :text, :card, :widget, :list, :testimonial]
)