Skeleton
A placeholder where content is still loading.
forSlots(SkeletonSlots)(Recipes.Skeleton({}))
Usage
The function that drew the preview, over the theme module Create a theme writes. The preview passes it the style picked above instead of its default.
export const SkeletonStyle = forSlots(SkeletonSlots)(Recipes.Skeleton({}))
export const skeleton = (style: NamedStyle<typeof SkeletonSlots>, h: HtmlBuilder<never>): Html =>
h.div(
[],
[
Skeleton.view({ label: 'Loading the profile', style }, h),
Skeleton.view({ style }, h),
Skeleton.view({ style }, h),
],
)