Skip to content

[EuiSelectable] Evaluate supporting groups and "bulk" selection #8994

Description

@acstll

Problem Statement

Working with groups of options in EuiSelectable is not ideal.

There are "group labels" (with the option.isGroupLabel setting):

An option is allowed to be passed that is just a header for the options that follow it. It takes no mouse handlers and renders similar to a title.

but since there's no parent-child relationship in the component state, searching can break hierarchies and provide useless results (if you search for "foo" and there was a group under the "foo" heading, you'll see the heading but not its options).

It would also be useful to be able to do bulk selection (checking or unchecking all options in a group).

Request by @ArtemS-ela @jovana-andjelkovic

Proposed Solution

Make the component handle groups in a smarter way, in order to:

  • enable better searching for groups
  • allow bulk/group selection

Value / Impact

🟡 TBD

Do alternatives or workarounds exist?

Kind of. Searching could be improved with some custom logic in a custom optionMatcher function. And bulk selection is possible lifting the options state and adding controls to the group labels via append/prepend, but these appear to have accessibility issues.

Additional context (Optional)

This came as a request in Slack.

Designs or Specs (Optional)

Image

Sketch ideas from consumer:

New option shape:

  • groupId?: string for children.
  • isGroup?: true for group rows (instead of isGroupLabel).

New props on EuiSelectable:

  • allowGroupSelection?: boolean (default false).
  • groupSelectionScope?: 'all' | 'visible' (default 'all').
  • onGroupToggle?(groupId: string, next: 'none' | 'all', scope: 'all' | 'visible'): void (optional hook; if omitted, component manages state internally like it does for single items).
  • renderGroupControls?(state: 'none' | 'some' | 'all', groupId: string): ReactNode (custom action area).
  • selectGroupOnLabelClick?: boolean (wrap group label in a ).

Activity

  1. added
    request
    on Sep 25, 2025
  2. JasonStoltz commented on Sep 25, 2025

    @JasonStoltz
    Contributor

    @acstll Can you please add the person whom requested this to the description? That helps us determine who communicate updates to.

    While we don't want to link to Slack conversations in an issue, using the Slack feature to generate a summary of the conversation, including a date the conversation happened, and mentioned who requested it in that Slack conversation helps as well.

  3. JasonStoltz commented on Nov 19, 2025

    @JasonStoltz
    Contributor

    Thank you for adding this issue. We've triaged it to determine priority and next steps:

    • New status: Backlog
    • Priority: We are not prioritizing this work.
    • Next steps: We are unlikely to complete this work, but we’d happily review a pull request if you’d like to contribute a PR.

    If you believe this should be prioritized differently, please feel free to add more context here (e.g., how it impacts your work, or how broadly it might affect other users). That helps us re-evaluate priorities.

  4. ek-so commented on Jan 23, 2026

    @ek-so
    Contributor

    Hey folks! Just fyi, with the styles update for list components, I suggest that we may show hierarchy in the list like this (however no exact estimation of the styles change yet, design issue here). Lmk what you think!

  5. jovana-andjelkovic commented on Jan 23, 2026

    @jovana-andjelkovic

    @ek-so I think that would work! I've left a comment on design issue about another case of bulk selection, "select all". We can take that one as separate issue as well!

  6. github-actions commented on Jul 22, 2026

    @github-actions

    👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.

  7. added
    stale-issue
    on Jul 22, 2026
  8. jovana-andjelkovic commented on Jul 23, 2026

    @jovana-andjelkovic
  9. removed
    stale-issue
    on Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions