Skeleton
Generated from public Vue/TypeScript exports by
pnpm docs:generate. Edit source comments and stories to update this reference. Types describe the declared API; browser/device constraints are covered in the guides. This catalog reflects source commitfc6bfb108634735f1657e533206c3f8702ad357d; match your installed package and typed manifest before using an export. Source review does not establish registry-release availability.
Skeleton
import { Skeleton } from '@gxp-dev/app-ui'
Examples
These are authored Storybook excerpts, not complete standalone modules. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
Default
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { Skeleton } from '.'
{
render: (args) => ({
components: { Skeleton },
setup() {
return { args }
},
template: '<Skeleton v-bind="args" class="h-4 w-[250px]" />',
}),
}
CardSkeleton
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { Skeleton } from '.'
{
name: 'Card Skeleton',
render: () => ({
components: { Skeleton },
template: `
<div class="flex flex-col space-y-3">
<Skeleton class="h-[125px] w-[250px] rounded-xl" />
<div class="space-y-2">
<Skeleton class="h-4 w-[250px]" />
<Skeleton class="h-4 w-[200px]" />
</div>
</div>
`,
}),
}
ProfileSkeleton
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { Skeleton } from '.'
{
name: 'Profile Skeleton',
render: () => ({
components: { Skeleton },
template: `
<div class="flex items-center space-x-4">
<Skeleton class="h-12 w-12 rounded-full" />
<div class="space-y-2">
<Skeleton class="h-4 w-[250px]" />
<Skeleton class="h-4 w-[200px]" />
</div>
</div>
`,
}),
}