Picture

Picture is a component that uses the picture element to provide alternative images for different display and device scenarios.

Dragon Ball

Usage

import { Picture, Source, Image } from "@yamada-ui/react"
<Picture>
  <Source />
  <Image />
</Picture>

Use sources

Dragon Ball

Use Custom Media Query

Dragon Ball

Disable Sorting

By default, it is sorted by the minW and maxW of the source. To disable this sorting, set enableSorting to false.

Dragon Ball

Props

Similar Components

Image

Image is a component that displays images.

AspectRatio

AspectRatio is a component for embedding things like videos and maps while maintaining the aspect ratio.

Icon

Icon is a general icon component that can be used in your projects.

QrCode

QrCode is a component that displays a QR code.

Avatar

Avatar is a component that displays a profile picture or an icon with initials representing a user.

Uses Components & Hooks