-
Notifications
You must be signed in to change notification settings - Fork 27
feat: add Waypoint and useWaypoint components #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Some minor copy edits, and random nits.
)} | ||
onPositionChange={({ position }) => { | ||
if (position === Position.BELOW || position === Position.ABOVE) { | ||
setMessage(`Exited (${Position[position].toLowerCase()})`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this needs to be clarified anywhere, but exiting the boundary on the right in horizontal mode is considered Position.BELOW
which did feel a bit weird when looking at the example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed the names to something more agnostic 👍
Co-authored-by: Kyle Tsang <6854874+kyletsang@users.noreply.github.com>
Still need some tests and docs