Skip to content

4.1.2

Compare
Choose a tag to compare
@nandorojo nandorojo released this 19 Oct 15:49
· 42 commits to master since this release

Simple release: adds forwardRef to SolitoImage on Web, passing down the ref to NextImage under the hood:

import { SolitoImage } from 'solito/image'

export default function Image() {
  const ref = useRef<SolitoImage>(null)

  return <SolitoImage ref={ref} src="" alt="" height={300} width={300} />
}

Addresses #439.

Previous versions of 4.1 had messed up NPM releases, which is why it skips to this one.