feat(react-skeleton): add useSkeletonBase_unstable hook#35809
Merged
Conversation
a20c61d to
ace3617
Compare
…mBase_unstable hooks Adds base state hooks for Skeleton and SkeletonItem components that extract pure component logic (ARIA, slot structure) without design-related props (animation, appearance, size, shape). - Add SkeletonBaseProps/SkeletonBaseState types omitting animation and appearance - Add SkeletonItemBaseProps/SkeletonItemBaseState types omitting animation, appearance, size, shape - Add useSkeletonBase_unstable hook preserving role=progressbar and aria-busy=true - Add useSkeletonItemBase_unstable hook for slot structure - Refactor useSkeleton_unstable and useSkeletonItem_unstable to call base hooks - Export new types and hooks from package index.ts Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
a7a3476 to
b4c8762
Compare
📊 Bundle size report
Unchanged fixtures
|
|
Pull request demo site: URL |
ValentinaKozlova
approved these changes
Mar 18, 2026
1 task
tudorpopams
pushed a commit
to tudorpopams/fluentui
that referenced
this pull request
Apr 14, 2026
) Co-authored-by: Claude Sonnet 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
useSkeletonBase_unstablehook toreact-skeletonthat extracts pure component logic without design propsuseSkeletonItemBase_unstablehook toreact-skeletonfor SkeletonItem componentSkeletonBaseProps/SkeletonBaseStatetypes (omittinganimationandappearanceas design-related props)SkeletonItemBaseProps/SkeletonItemBaseStatetypes (omittinganimation,appearance,size,shape)useSkeleton_unstableto calluseSkeletonBase_unstableinternallyuseSkeletonItem_unstableto calluseSkeletonItemBase_unstableinternallyindex.tsWhat base hooks include
The base hooks preserve:
role="progressbar"andaria-busy={true}ARIA attributes on Skeletonrootslot with intrinsic element props)The base hooks exclude:
animationprop (wave/pulse visual animation - design concern)appearanceprop (opaque/translucent - design concern)sizeprop on SkeletonItem (design concern)shapeprop on SkeletonItem (circle/square/rectangle - design concern)🤖 Generated with Claude Code