-
-
Notifications
You must be signed in to change notification settings - Fork 143
[select] POC: items array API #2082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
commit: |
Bundle size reportBundle size will be reported once CircleCI build #107859 finishes. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
||
export default function Experiment() { | ||
return ( | ||
<Select.Root defaultValue="item-42" items={items}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
item-42
isn't being selected initially (when opening the popup there's no selection, then when closing, the value becomes blank)
How do you create groups? |
You can't yet, but I'm planning to make the Select.Root accept objects in shape of: {
group: string;
disabled?: boolean;
items: SelectOption[];
} |
Added support for groups. Also moved the templates under Popup, closer to where they're actually rendered. |
https://deploy-preview-2082--base-ui.netlify.app/experiments/select/select-array-api