How to use the @chakra-ui/hooks.assignRef function in @chakra-ui/hooks

To help you get started, we’ve selected a few @chakra-ui/hooks examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chakra-ui / chakra-ui / packages / chakra-ui / src / Popper / Popper.tsx View on Github external
return (refValue: any) => {
      assignRef(refA, refValue);
      assignRef(refB, refValue);
    };
  }, [refA, refB]);
github chakra-ui / chakra-ui / packages / chakra-ui / src / Popper / Popper.tsx View on Github external
return (refValue: any) => {
      assignRef(refA, refValue);
      assignRef(refB, refValue);
    };
  }, [refA, refB]);
github chakra-ui / chakra-ui / packages / chakra-ui / src / Popper / Popper.tsx View on Github external
(node: HTMLElement) => {
      assignRef(ownRef, node);
      handleOpen();
    },
    [ownRef, handleOpen],