Skip to content

Commit

Permalink
fix: update .changeset/stupid-peas-juggle.md
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
  • Loading branch information
forberg and sarah11918 authored Jan 2, 2024
1 parent 893c7a2 commit afd5eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/stupid-peas-juggle.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'astro': minor
---

Supports setting rootMargin for the `client:visible` directive.
Extends the `client:visible` directive by adding an optional `rootMargin` property. This allows a component to be hydrated when it is close to the viewport instead of waiting for it to become visible.

```html
<!-- Load component when it's within 200px away from entering the viewport -->
Expand Down

0 comments on commit afd5eb3

Please sign in to comment.