Image

An image that changes in light or dark themes.

Installation

Package installation information
Installyarn add @atlaskit/image
SourceBitbucket.org, (opens new window)
npm@atlaskit/image, (opens new window)
Bundleunpkg.com, (opens new window)

Props

srcDark

Description

Image URL to use for dark mode. This overrides src when the user has selected dark mode either in the app or on their operating system.

Typestring

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests.

Typestring
Was this page helpful?
We use this feedback to improve our documentation.
© 2026 AtlassianTrademark, (opens new window)Privacy, (opens new window)License