Skip to content

Support manual pin/unpin #116

Done

Description

@AndersDJohnson

Add a prop to manually set pin/unpin state, e.g. to enable a hide button that unpins when pinned if user wants to hide headroom without scrolling down.

Activity

  1. denkristoffer commented on Oct 11, 2017

    @denkristoffer
    Contributor

    You can set a reference and use this.ref.pin() or this.ref.unpin().

  2. DocCaliban commented on Oct 7, 2018

    @DocCaliban

    Going to agree with @AndersDJohnson and point out that using a ref is discouraged.
    https://reactjs.org/docs/refs-and-the-dom.html#dont-overuse-refs

  3. barrettluke commented on Jan 17, 2019

    @barrettluke

    translateY for unpin is HARDCODED '-100%' please change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions