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 | (string & {}) | "px" | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | ... 75 more ... | "9xl">
説明
The image sizes
attribute.
タイプ
string
説明
The image src
attribute.
タイプ
string
説明
The image srcset
attribute.
タイプ
string
GitHubでこのページを編集する