UNPKG

@dynamic-labs/sdk-react-core

Version:

A React SDK for implementing wallet web3 authentication and authorization to your website.

10 lines (8 loc) 324 B
'use client' // // This is a helper to convert pixel to rem string. // Since we are using rem as our unit of measurement, we need to convert pixel to rem // otherwise, the styling can look broken if the user changes html font size in the browser. // const pixelToRem = (pixel) => `${pixel / 16}rem`; export { pixelToRem };