Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

Image

Imageは、フォールバックをサポートした画像を表示するコンポーネントです。

ソース@yamada-ui/image

Props

ImageProps

crossOrigin

説明

The key used to set the crossOrigin on the HTMLImageElement into which the image will be loaded. This tells the browser to request cross-origin access when trying to download the image data.

タイプ

"" | "anonymous" | "use-credentials"

fallback

説明

Fallback image src or element to show if image is loading or image fails.

タイプ

type ONLY_FOR_FORMAT = | string | ReactElement<any, string | JSXElementConstructor<any>>

fallbackStrategy

説明

- beforeLoadOrError: loads the fallbackImage while loading the src. - onError: loads the fallbackImage only if there is an error fetching the src.

タイプ

"onError" | "beforeLoadOrError"

デフォルト

beforeLoadOrError

fit

説明

The CSS object-fit property.

タイプ

UIValue<ObjectFit>

ignoreFallback

説明

If true, opt out of the fallbackSrc logic and use as img.

タイプ

boolean

デフォルト

false

loading

説明

The image loading attribute.

タイプ

"eager" | "lazy"

onError

説明

A callback for when there was an error loading the image src.

タイプ

ReactEventHandler<HTMLImageElement>

onLoad

説明

A callback for when the image src has been loaded.

タイプ

ReactEventHandler<HTMLImageElement>

size

非推奨

説明

The CSS box-size property.

非推奨

Use boxSize instead.

タイプ

UIValue<number | (string & {}) | "px" | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | ... 75 more ... | "9xl">

sizes

説明

The image sizes attribute.

タイプ

string

src

説明

The image src attribute.

タイプ

string

srcSet

説明

The image srcset attribute.

タイプ

string

GitHubでこのページを編集する

メディアとアイコンNativeImage