An open source design system that's fully customizable and agent ready
TypeScript
fix(docsite): give Skeleton properties-tab example explicit dimensions (#3156)
Cindy Zhanga1891407725d
diff --git a/.changeset/skeleton-docsite-dims.md b/.changeset/skeleton-docsite-dims.mdnew file mode 100644index 0000000000..8396441540--- /dev/null+++ b/.changeset/skeleton-docsite-dims.md@@ -0,0 +1,13 @@+---+'@astryxdesign/core': patch+---++[docs] Give the `Skeleton` properties-tab example explicit dimensions so it is visible++The `Skeleton` doc had no `playground` config, so the interactive+properties-tab preview fell back to the prop defaults of `width: '100%'` /+`height: '100%'`. With no sized parent, the skeleton collapsed to a zero-size+(invisible) element. The doc now sets a `playground.defaults` of+`width: 320` / `height: 80` so the shimmer placeholder renders visibly.++@cixzhangdiff --git a/packages/core/src/Skeleton/Skeleton.doc.mjs b/packages/core/src/Skeleton/Skeleton.doc.mjsindex d2b44e822a..79f09baf05 100644--- a/packages/core/src/Skeleton/Skeleton.doc.mjs+++ b/packages/core/src/Skeleton/Skeleton.doc.mjs@@ -33,7 +33,17 @@ export const docs = {'Index for staggered animation timing. For element at index n, animation starts at DELAY_TIME + (STAGGER_TIME × n).',default: '0',},- ], theming: {+ ],+ playground: {+ // Skeleton width/height default to '100%', which collapses to a zero-size+ // (invisible) element in the properties-tab preview. Give the example+ // explicit pixel dimensions so the shimmer placeholder is visible.+ defaults: {+ width: 320,+ height: 80,+ },+ },+ theming: {targets: [{className: 'astryx-skeleton'},],