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"
Yamada UIにスターをあげる
スターImage
は、フォールバックをサポートした画像を表示するコンポーネントです。
説明
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 image src
or element to show if image is loading or image fails.
タイプ
type ONLY_FOR_FORMAT =
| string
| ReactElement<any, string | JSXElementConstructor<any>>
説明
- beforeLoadOrError: loads the fallbackImage while loading the src. - onError: loads the fallbackImage only if there is an error fetching the src.
タイプ
"onError" | "beforeLoadOrError"
デフォルト
beforeLoadOrError
説明
The CSS object-fit
property.
タイプ
UIValue<ObjectFit>
説明
If true
, opt out of the fallbackSrc
logic and use as img
.
タイプ
boolean
デフォルト
false
説明
The image loading
attribute.
タイプ
"eager" | "lazy"
説明
A callback for when there was an error loading the image src
.
タイプ
ReactEventHandler<HTMLImageElement>
説明
A callback for when the image src
has been loaded.
タイプ
ReactEventHandler<HTMLImageElement>
説明
The CSS box-size
property.
非推奨
Use boxSize
instead.
タイプ
UIValue<number | "px" | "2xl" | "lg" | "md" | "sm" | "xl" | ({} & string) | "0.5" | "1" | "1.5" | "2" | "2.5" | "2xs" | "3" | "3.5" | "3xl" | "3xs" | "4" | "4.5" | "4xl" | "4xs" | "5" | "5.5" | ... 64 more ... | "min-intrinsic">
説明
The image sizes
attribute.
タイプ
string
説明
The image src
attribute.
タイプ
string
説明
The image srcset
attribute.
タイプ
string
GitHubでこのページを編集する