共用方式為


ImageOverlayProps interface

ImageOverlay 的 props 中。

屬性

altText

用作圖像的替換文本的可選字串。

imageSrc

用於大比例顯示圖像的圖像源。

isOpen

Boolean (布林值),用於控制是否顯示模態。

onDismiss

關閉 ImageOverlay 模態框時調用的回調

onDownloadButtonClicked

可選單擊下載按鈕時調用的回調。 如果未提供,則不會呈現下載按鈕。

title

可選字串,用作圖像的標題,顯示在 ImageOverlay 的左上角。

titleIcon

可選的 JSX 元素,用作標題圖示並顯示在 title 元素的左側。

屬性詳細資料

altText

用作圖像的替換文本的可選字串。

altText?: string

屬性值

string

imageSrc

用於大比例顯示圖像的圖像源。

imageSrc: string

屬性值

string

isOpen

Boolean (布林值),用於控制是否顯示模態。

isOpen: boolean

屬性值

boolean

onDismiss

關閉 ImageOverlay 模態框時調用的回調

onDismiss: () => void

屬性值

() => void

onDownloadButtonClicked

可選單擊下載按鈕時調用的回調。 如果未提供,則不會呈現下載按鈕。

onDownloadButtonClicked?: (imageSrc: string) => void

屬性值

(imageSrc: string) => void

title

可選字串,用作圖像的標題,顯示在 ImageOverlay 的左上角。

title?: string

屬性值

string

titleIcon

可選的 JSX 元素,用作標題圖示並顯示在 title 元素的左側。

titleIcon?: Element

屬性值

Element