feat(react-skeleton): Add size and shape props to Skeleton for context-based propagation to children#35787
Conversation
Co-authored-by: ValentinaKozlova <[email protected]>
size and shape props to Skeleton for context-based propagation to children
|
@copilot , |
…n.types.ts Co-authored-by: ValentinaKozlova <[email protected]>
…n SkeletonItemProps Co-authored-by: ValentinaKozlova <[email protected]>
Done in 816bae81. |
…etonItem.types.ts Co-authored-by: ValentinaKozlova <[email protected]>
|
@copilot
|
The comment appears to be cut off — "Put size={20} to" doesn't complete. Could you clarify where |
@copilot , |
… from SkeletonItems in SkeletonRow.stories.tsx Co-authored-by: ValentinaKozlova <[email protected]>
|
Pull request demo site: URL |
📊 Bundle size report
Unchanged fixtures
|
…context-based propagation to children (microsoft#35787) Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: ValentinaKozlova <[email protected]> Co-authored-by: Valentyna <[email protected]>

sizeandshapeprops toSkeletonPropsandSkeletonStateinSkeleton.types.tsSkeletonItemSizetype inSkeleton.types.ts(not inSkeletonItem.types.ts)sizeandshapetoSkeletonContextValueinSkeletonContext.tsSkeletonItem.types.tsto usePick<SkeletonProps, 'size' | 'shape'>(no separate size/shape definitions, no re-export ofSkeletonItemSize)SkeletonItemSizeonly fromSkeletoncomponent index and publicSkeleton.tsuseSkeleton.tsto handlesizeandshapein stateuseSkeletonContextValues.tsto includesizeandshapein contextuseSkeletonItem.tsxto consumesizeandshapefrom contextetc/react-skeleton.api.mdAPI docsSkeletonRow.stories.tsx: addsize={20}to<Skeleton>and removesize={16}fromSkeletonItemelementsOriginal prompt
sizeandshapeprops #31664💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.