base-ui icon indicating copy to clipboard operation
base-ui copied to clipboard

[select] POC: items array API

Open michaldudak opened this issue 6 months ago • 6 comments

https://deploy-preview-2082--base-ui.netlify.app/experiments/select/select-array-api

michaldudak avatar Jun 09 '25 08:06 michaldudak

Open in StackBlitz

npm i https://pkg.pr.new/@base-ui-components/react@2082

commit: f2aafb1

pkg-pr-new[bot] avatar Jun 09 '25 08:06 pkg-pr-new[bot]

Bundle size report

Bundle size will be reported once CircleCI build #107859 finishes.

Generated by :no_entry_sign: dangerJS against f2aafb1773ab0248a9ddecde055566058ee688ff

mui-bot avatar Jun 09 '25 08:06 mui-bot

Deploy Preview for base-ui ready!

Name Link
Latest commit f2aafb1773ab0248a9ddecde055566058ee688ff
Latest deploy log https://app.netlify.com/projects/base-ui/deploys/684868856a6b75000879eb4b
Deploy Preview https://deploy-preview-2082--base-ui.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Jun 09 '25 08:06 netlify[bot]

How do you create groups?

atomiks avatar Jun 09 '25 09:06 atomiks

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[];
}

michaldudak avatar Jun 09 '25 19:06 michaldudak

Added support for groups. Also moved the templates under Popup, closer to where they're actually rendered.

michaldudak avatar Jun 10 '25 11:06 michaldudak