docs(select): add new section on rich content options#4512
Open
brandyscarney wants to merge 14 commits into
Open
docs(select): add new section on rich content options#4512brandyscarney wants to merge 14 commits into
brandyscarney wants to merge 14 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
brandyscarney
commented
May 20, 2026
brandyscarney
commented
May 20, 2026
brandyscarney
commented
May 20, 2026
brandyscarney
commented
May 20, 2026
Comment on lines
+56
to
+64
| const formatInterfaceLabel = (selectInterface) => { | ||
| return selectInterface | ||
| .split('-') | ||
| .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) | ||
| .join(' '); | ||
| }; | ||
|
|
||
| /* Dynamically create the different Select components */ | ||
| const selectInterfaces = ['alert', 'action-sheet', 'modal', 'popover']; |
Member
Author
There was a problem hiding this comment.
Originally I defined the interface array like this:
const selectInterfaces = [{
label: 'Alert',
value: 'alert',
}, {
label: 'Action Sheet',
value: 'action-sheet',
}, {
label: 'Modal',
value: 'modal',
}, {
label: 'Popover',
value: 'popover',
}];but I removed it in favor of using the single string and converting it to the label. If we think this is too much for the demo, I can go back to the object array.
brandyscarney
commented
May 20, 2026
Comment on lines
+102
to
+106
| /* The interfaceOptions property is for demonstration purposes only. */ | ||
| /* It is not required for the rich options to work. */ | ||
| select.interfaceOptions = { | ||
| header: 'Travel mode', | ||
| }; |
Member
Author
There was a problem hiding this comment.
This is just to make the demo look nicer but can be removed if desired.
thetaPC
approved these changes
May 22, 2026
Contributor
thetaPC
left a comment
There was a problem hiding this comment.
LGTM, minor suggestions!
Thank you for updating the Playground docs!
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.
Adds the following:
Preview