Edit Profile

Dark Mode

Copy config

Copy and paste the following code into your global.css file to apply the styles.

Skeleton

Skeleton placeholders are temporary content layout previews.

Installation

Run the following cli command or copy/paste the component code into your project

qwik-ui add skeleton
import { type PropsOf, component$ } from '@builder.io/qwik';
import { cn } from '@qwik-ui/utils';
 
export const Skeleton = component$<PropsOf<'div'>>(({ ...props }) => {
  return (
    <div {...props} class={cn('animate-pulse rounded bg-foreground/10', props.class)} />
  );
});

Usage

import { Skeleton } from '~/components/ui';
<Skeleton class="h-6 w-24 rounded-full" />

Examples

Card