docs: add CenterBaseline to style macro docs#10216
Merged
Merged
Conversation
| typeParameters: obj.typeParameters.map(i => fn(i, 'typeParameters')), | ||
| ref: obj.ref ? fn(obj.ref, 'ref') : null, | ||
| description: obj.description, | ||
| examples: obj.examples, |
Member
There was a problem hiding this comment.
? did it break? or are we potentially adding more to our docs? i see there are some other @examples floating around
Member
There was a problem hiding this comment.
Everything else on this page has been a function, and this is the first component.
Member
Author
There was a problem hiding this comment.
yeah we use those for the other style macro utils (all functions) which pulls from the jsdocs comment @example. i don't see us using @example for any components except for CenterBaseline now so it should be fine. we didn't support it back @example jsdocs comments for components and now this adds support for it.
|
Build successful! 🎉 |
reidbarber
previously approved these changes
Jun 17, 2026
|
Build successful! 🎉 |
## API Changes
@react-spectrum/s2/@react-spectrum/s2:CenterBaseline+CenterBaseline {
+ children: ReactNode
+ className?: string | undefined
+ id?: string | undefined
+ role?: AriaRole | undefined
+ slot?: string
+ style?: CSSProperties
+ styles?: StyleString
+ tabIndex?: number | undefined
+} |
Agent Skills ChangesModified (4)
InstallReact Spectrum S2: React Aria: |
reidbarber
approved these changes
Jun 17, 2026
devongovett
approved these changes
Jun 17, 2026
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.
Closes
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: