Skip to content

[EuiFilterButton] Allow percentage values in numActiveFilters prop #8695

Description

@tkajtoch

Originally reported by @tonyghiani

Is your feature request related to a problem? Please describe.

We need to pass a percentage value to EuiFilterButton's numActiveFilters prop. It currently requires typecasting to any as the prop only accepts the number type.

Describe the solution you'd like

numActiveFilters prop should allow percentage values for these special cases. Extending the type to number | string with an appropriate JSDoc seems like a good solution.

Describe alternatives you've considered

  • Casting the prop value to any works, but it's a bad practice.

Desired timeline

While a workaround is available, we'd like to have this as soon as possible so Kibana teams can use it.

Activity

  1. self-assigned this
    on May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions