An open source design system that's fully customizable and agent ready
TypeScript
Improve Skeleton docs page and block examples (#1630)
Ted McDonald47f389703976
diff --git a/packages/cli/templates/blocks/components/Skeleton/SkeletonCardSkeleton.doc.mjs b/packages/cli/templates/blocks/components/Skeleton/SkeletonCardSkeleton.doc.mjsindex 96c3a87a71..8a49d530c2 100644--- a/packages/cli/templates/blocks/components/Skeleton/SkeletonCardSkeleton.doc.mjs+++ b/packages/cli/templates/blocks/components/Skeleton/SkeletonCardSkeleton.doc.mjs@@ -3,7 +3,7 @@ export const doc = {type: 'block',name: 'Skeleton — Card Loading',description:- 'Card skeleton with avatar, name, and content lines for loading states.',+ 'Card skeleton with avatar, name, and content lines.',isReady: true,aspectRatio: 4 / 3,componentsUsed: ['Skeleton', 'Card', 'HStack', 'VStack'],diff --git a/packages/cli/templates/blocks/components/Skeleton/SkeletonStaggeredList.doc.mjs b/packages/cli/templates/blocks/components/Skeleton/SkeletonStaggeredList.doc.mjsindex 364e44df43..f334297fc1 100644--- a/packages/cli/templates/blocks/components/Skeleton/SkeletonStaggeredList.doc.mjs+++ b/packages/cli/templates/blocks/components/Skeleton/SkeletonStaggeredList.doc.mjs@@ -3,7 +3,7 @@ export const doc = {type: 'block',name: 'Skeleton — Staggered List',description:- 'Staggered skeleton lines with varying widths and sequential animation timing.',+ 'Staggered skeleton lines with varying widths.',isReady: true,aspectRatio: 4 / 3,componentsUsed: ['Skeleton', 'VStack'],diff --git a/packages/cli/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.doc.mjs b/packages/cli/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.doc.mjsindex e4906bd304..c1a5f3230f 100644--- a/packages/cli/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.doc.mjs+++ b/packages/cli/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.doc.mjs@@ -3,7 +3,7 @@ export const doc = {type: 'block',name: 'Skeleton — Table Rows',description:- 'Multi-row table skeleton with staggered column widths for data table loading states.',+ 'Table skeleton with staggered column widths.',isReady: true,aspectRatio: 4 / 3,componentsUsed: ['Skeleton', 'HStack', 'VStack'],diff --git a/packages/core/src/Skeleton/Skeleton.doc.mjs b/packages/core/src/Skeleton/Skeleton.doc.mjsindex 034c1d08ae..1f0756402e 100644--- a/packages/core/src/Skeleton/Skeleton.doc.mjs+++ b/packages/core/src/Skeleton/Skeleton.doc.mjs@@ -36,12 +36,13 @@ export const docs = {},usage: {description:- 'A placeholder loading component that displays an animated shimmer effect while content is loading. Use Skeleton to build loading screens that match the layout of the content being loaded. For content of unknown dimensions, use Spinner instead.',+ 'An animated shimmer placeholder that previews the shape of content while it loads. Use it to build loading screens that match the layout of the real content. For content with unknown dimensions, use Spinner instead.',bestPractices: [{guidance: true, description: 'Match the size and shape of the content being loaded to create a realistic placeholder.'},- {guidance: true, description: 'Use the index prop to stagger multiple skeletons for a natural wave animation.'},+ {guidance: true, description: 'Stagger multiple skeletons with the `index` prop for a natural wave animation.'},{guidance: false, description: 'Use when the content dimensions are unknown — use Spinner instead.'},{guidance: false, description: 'Combine with a Spinner on the same content area — pick one loading pattern.'},+ {guidance: false, description: 'Show skeletons indefinitely — if loading takes too long, show an error or empty state instead.'},],},};@@ -83,12 +84,13 @@ export const docsZh = {},usage: {description:- 'A placeholder loading component that displays an animated shimmer effect while content is loading. Use Skeleton to build loading screens that match the layout of the content being loaded. For content of unknown dimensions, use Spinner instead.',+ 'An animated shimmer placeholder that previews the shape of content while it loads. Use it to build loading screens that match the layout of the real content. For content with unknown dimensions, use Spinner instead.',bestPractices: [{guidance: true, description: 'Match the size and shape of the content being loaded to create a realistic placeholder.'},- {guidance: true, description: 'Use the index prop to stagger multiple skeletons for a natural wave animation.'},+ {guidance: true, description: 'Stagger multiple skeletons with the `index` prop for a natural wave animation.'},{guidance: false, description: 'Use when the content dimensions are unknown — use Spinner instead.'},{guidance: false, description: 'Combine with a Spinner on the same content area — pick one loading pattern.'},+ {guidance: false, description: 'Show skeletons indefinitely — if loading takes too long, show an error or empty state instead.'},],},};@@ -97,12 +99,13 @@ export const docsZh = {export const docsDense = {usage: {description:- 'A placeholder loading component that displays an animated shimmer effect while content is loading. Use Skeleton to build loading screens that match the layout of the content being loaded. For content of unknown dimensions, use Spinner instead.',+ 'An animated shimmer placeholder that previews the shape of content while it loads. Use it to build loading screens that match the layout of the real content. For content with unknown dimensions, use Spinner instead.',bestPractices: [{guidance: true, description: 'Match the size and shape of the content being loaded to create a realistic placeholder.'},- {guidance: true, description: 'Use the index prop to stagger multiple skeletons for a natural wave animation.'},+ {guidance: true, description: 'Stagger multiple skeletons with the `index` prop for a natural wave animation.'},{guidance: false, description: 'Use when the content dimensions are unknown — use Spinner instead.'},{guidance: false, description: 'Combine with a Spinner on the same content area — pick one loading pattern.'},+ {guidance: false, description: 'Show skeletons indefinitely — if loading takes too long, show an error or empty state instead.'},],},propDescriptions: {