@urami/react
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@urami/react

Optimized image component for React.

Documentation

Usage

import Image from '@urami/react'

const Component = () => {
  return (
    <Image
      src="https://demo.rayriffy.com/tom-scott.jpg"
      width={801}
      height={801}
      alt="Tom Scott"
      className="rounded-xl shadow-md"
    />
  )
}

Props

Name Type Default Required Description
src string - Source of the image
width number - Width of the image
height number - Height of the image (Specify this will results in less layout shift)
quality number 75 Quality of the image
loader fn defaultLoader Loader function, please refer to Loader

Package Sidebar

Install

npm i @urami/react

Homepage

urami.dev/

Weekly Downloads

1

Version

1.0.3

License

none

Unpacked Size

8.24 kB

Total Files

7

Last publish

Collaborators

  • rayriffy