Skip to content

[EuiDataGrid] Make EuiDataGridCellActions reusable outside EuiDataGrid #8615

Description

@JasonStoltz

Is your feature request related to a problem? Please describe.
EuiDataGridCellActions are only available as part of EuiDataGrid. It would be useful to use this for other use cases, specifically integrating it in EuiTable like in this design:

Image

Describe the solution you'd like
Split EuiDataGridCellActions out of EuiDataGrid.

Describe alternatives you've considered
I should be possible to use it that way outside EuiDataGrid. It's not exported, though, and by that it's not part of the supported EUI API.

It would also only be the cell actions bar, not the whole cell wrapper and selection thing, so there would be plenty to handle on your end in terms of accessibility

Desired timeline
I believe that @patpscal and team will go with another solution for now, so we can consider this was low priority at the moment.

Additional context
This would be a great opportunity to explore splitting up the EuiDataGrid logic from the UI elements. Consider this issue an experimentation ground. The exported component should be marked as experimental.

Activity

  1. changed the title [-][EuiDataGrid] Make EuiDataGridCellActions reusable outside EuiDataGrid[/-] [+][EuiDataGrid] Make `EuiDataGridCellActions` reusable outside `EuiDataGrid`[/+] on Apr 23, 2025
  2. added
    help wanted
    on Apr 24, 2025
  3. github-actions commented on Apr 24, 2025

    @github-actions

    👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.

  4. ryankeairns commented on Apr 24, 2025

    @ryankeairns
    Contributor

    A potential con is that this blurs the line between table and data grid in a way that could confuse when to use one versus the other. My gut says to keep the table very basic and close to the HTML interpretation 🤔

    I'm still a bit skeptical that the case presented could not simply use EuiDataGrid. If the sticking point has to do with whether to visibly show a header row, an alternative might be to make the header row optional for data grid.

  5. tkajtoch commented on Apr 24, 2025

    @tkajtoch
    Contributor

    The only drawback to using EuiDataGrid with a hidden header I see here is the setup complexity. It needs columns and items to be defined which isn't the best DX, but it's not a dealbreaker. It could be abstracted away very easily.

  6. ryankeairns commented on Apr 24, 2025

    @ryankeairns
    Contributor

    Haven't read through this but FYI the filtering in logs/traces has 0 keyboard accessibility.

    Something else for us to consider is how much of the accessibility complexity we would be pushing onto those adding actions to basic table. This comment was from @smith but you had similar feedback @tkajtoch ... data grid certainly has a big 'pro' in this regard.

  7. JasonStoltz commented on Apr 29, 2025

    @JasonStoltz
    ContributorAuthor

    Here is a POC of a simple data grid that looks like the above: https://codesandbox.io/p/sandbox/sleepy-pond-pkjzjh?file=%2Fdemo.tsx

    It hides the header using:

    css={css`
      .euiDataGridHeader {
        ${euiScreenReaderOnly()}
      }
    `}
    
  8. JasonStoltz commented on Apr 29, 2025

    @JasonStoltz
    ContributorAuthor

    Something else for us to consider is how much of the accessibility complexity we would be pushing onto those adding actions to basic table. This comment was from @smith but you had similar feedback @tkajtoch ... data grid certainly has a big 'pro' in this regard.

    Good point. AFAICT table cells are not keyboard navigable. I assume the same rules apply to that as we state in our Popover guidance:

    Popovers have three accessibility requirements:
    Popover triggers must be anchored to elements that accept keyboard focus.
    Popovers can contain interactive elements. They must be controlled by a click handler.
    Popovers must not be activated by hover or focus events.

    I suppose we could simply add a tabindex=0 if a cell in a table has cell actions or something like that, to make it "focusable" 🤔.

  9. JasonStoltz commented on Apr 29, 2025

    @JasonStoltz
    ContributorAuthor

    At it's core, it feels hard to recommend data grid for a case like this.

    Thematically, EuiDatagrid is purpose built to handle scenarios where you have loads of data. It's a really heavy solution for a small table with 8 cells in it.

    EuiBasicTable is a much better fit for the case above -- it's a semantic html table. The cell actions menu seems transportable enough to a basic table, it may be quite useful.

  10. ryankeairns commented on Sep 8, 2025

    @ryankeairns
    Contributor

    This came up today in relation to Traces work in the Discover flyout.

    In this case, the consumer wanted a table with cell actions and, therefore, chose data grid. However, this was a rather simple two column table (practically, a list). Relatedly, there were some other needs (vertical header rows) that would have been more simply achieved - semantically - as a basic table.

    Image
  11. JasonStoltz commented on Sep 18, 2025

    @JasonStoltz
    ContributorAuthor

    The use case in this feature request is also likely driven by the need for cell actions. Hiding the headers on a basic table would be a lot simpler (if it's not already possible), alleviating the need for that feature.

  12. removed
    help wanted
    on Feb 26, 2026
  13. github-actions commented on Aug 26, 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.

  14. added
    stale-issue
    on Aug 26, 2026
  15. removed
    stale-issue
    on Oct 6, 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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions