Fidely UI v1 beta is now available!. 🚀

Image

Used to display images

John Doe

Usage

import { Image } from '@fidely-ui/react'
<Image />

Examples

Height

Use the height prop to change the height of the image component.

John Doe

Circular

An example of how to render a circular image to look like avatar.

John DoeJohn Doe

HTML Width and Height

Use the htmlWidth and htmlHeight props to set the native width and height of the image component.

Aspect Ratio

Use the aspectRatio prop to change the aspect ratio of the image component.

Next.js Image

Use the asChild prop to render the image as a child of the Image component.

import NextImage from 'next/image'
;<Image asChild>
  <NextImage src="..." alt="..." />
</Image>

Props

The Image component supports all native props of HTML image.

On this page