nextjs-toploader icon indicating copy to clipboard operation
nextjs-toploader copied to clipboard

Maybe more clarification in the documentation for prop color

Open jilv220 opened this issue 1 year ago • 0 comments

At first I thought color only works with hex string, then I figured out something like this also works.

const primaryRef = useRef('var(--primary)')

  return (
    <NextTopLoader
      color={`hsl(${primaryRef.current})`}
      showSpinner={showSpinner}
    />
  )

jilv220 avatar May 28 '23 09:05 jilv220