Skip to content

feat(react-headless-components-preview): add Dropdown component and stories#36101

Open
dmytrokirpa wants to merge 2 commits intomasterfrom
feat/headless-dropdown-stories
Open

feat(react-headless-components-preview): add Dropdown component and stories#36101
dmytrokirpa wants to merge 2 commits intomasterfrom
feat/headless-dropdown-stories

Conversation

@dmytrokirpa
Copy link
Copy Markdown
Contributor

@dmytrokirpa dmytrokirpa commented May 5, 2026

Summary

  • Adds a headless Dropdown component (with Listbox, Option, OptionGroup) to react-headless-components-preview
  • Uses popover attribute for Listbox (so no Portal needed)
  • Ports some jest/cypress adds some specific to headless tests
  • Ports 6 stories from react-combobox covering the behaviors that matter for headless usage: Default, Multiselect, Controlled, Grouped, ControllingOpenAndClose, Disabled

Stories

Story What it shows
Default Basic single-select with expand/clear icon toggle
Multiselect multiselect prop — comma-separated value, checkmarks on all options
Controlled value + selectedOptions + onOptionSelect fully controlled
Grouped OptionGroup with labels and separators
ControllingOpenAndClose open + onOpenChange driven by an external checkbox
Disabled Native disabled on the trigger button
Screen.Recording.2026-05-07.at.12.00.53.mov

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-headless-components-preview
react-headless-components-preview: entire library
107.577 kB
31.646 kB
127.418 kB
37.353 kB
19.841 kB
5.707 kB

🤖 This report was generated against 3f57751d2014b304ca4cd5ebb565a9fa893ee044

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Pull request demo site: URL

…tories

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dmytrokirpa dmytrokirpa force-pushed the feat/headless-dropdown-stories branch from edf6790 to 1dab2d3 Compare May 7, 2026 09:35
@dmytrokirpa dmytrokirpa marked this pull request as ready for review May 7, 2026 09:49
@dmytrokirpa dmytrokirpa requested a review from a team as a code owner May 7, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant