Skip to content

Export useEuiTimeWindow hook#9352

Merged
acstll merged 1 commit intoelastic:mainfrom
acstll:export-use-eui-time-window-hook
Feb 2, 2026
Merged

Export useEuiTimeWindow hook#9352
acstll merged 1 commit intoelastic:mainfrom
acstll:export-use-eui-time-window-hook

Conversation

@acstll
Copy link
Contributor

@acstll acstll commented Feb 2, 2026

Summary

Makes the useEuiTimeWindow hook available to import from main package @elastic/eui.

Why are we making this change?

In order to be able to reuse the hook, until now it was available only in EuiSuperDatePicker.

I'm deliberately not adding a changelog entry yet.

Impact to users

🟢 None, this is adding a new export.

QA

  • Verify the useEuiTimeWindow hook can be imported e.g. import { useEuiTimeWindow } from '@elastic/eui'

General checklist

  • Browser QA
    • Checked in both light and dark modes
    • Checked in both MacOS and Windows high contrast modes
    • Checked in mobile
    • Checked in Chrome, Safari, Edge, and Firefox
    • Checked for accessibility including keyboard-only and screenreader modes
  • Docs site QA
  • Code quality checklist
  • Release checklist
    • A changelog entry exists and is marked appropriately
    • If applicable, added the breaking change issue label (and filled out the breaking change checklist)
    • If the changes unblock an issue in a different repo, smoke tested carefully (see Testing EUI features in Kibana ahead of time)
  • Designer checklist
    • If applicable, file an issue to update EUI's Figma library with any corresponding UI changes. (This is an internal repo, if you are external to Elastic, ask a maintainer to submit this request)

Makes the useEuiTimeWindow hook available for external consumers
to use for time window manipulation (step forward/backward, zoom out).

Co-authored-by: Cursor <cursoragent@cursor.com>
@acstll acstll self-assigned this Feb 2, 2026
@acstll acstll added the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label Feb 2, 2026
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

cc @acstll

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

cc @acstll

@acstll acstll marked this pull request as ready for review February 2, 2026 15:24
@acstll acstll requested a review from a team as a code owner February 2, 2026 15:24
Copy link
Contributor

@weronikaolejniczak weronikaolejniczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@acstll acstll merged commit a1725f7 into elastic:main Feb 2, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants