0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-03 22:29:08 -05:00
astro/.changeset/clever-emus-roll.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
487 B
Markdown
Raw Normal View History

---
'astro': minor
---
Adds a new, optional property `timeout` for the `client:idle` directive.
This value allows you to specify a maximum time to wait, in milliseconds, before hydrating a UI framework component, even if the page is not yet done with its initial load. This means you can delay hydration for lower-priority UI elements with more control to ensure your element is interactive within a specified time frame.
```astro
<ShowHideButton client:idle={{timeout: 500}} />
```