Skip to content
Enact

ui/ImageItem

Unstyled image item components and behaviors to be customized by a theme or application.

A minimally styled ImageItem ready for customization by a theme.

Extends: ui/ImageItemui/ImageItem.ImageItemBase
Wrapped with: ui/ImageItemui/ImageItem.ImageItemDecorator

A basic image item without any behavior.

Properties

The caption displayed with the image.


ObjectFunction

Called with a reference to the root component.

When using ui/ImageItemui/ImageItem.ImageItem, the ref prop is forwarded to this component as componentRef.


Customizes the component by mapping the supplied collection of CSS class names to the corresponding internal elements and states of this component.

The following classes are supported:

  • imageItem - The root component class

  • caption - The caption component class

  • horizontal - Applied when `orientation="horizontal"

  • image - The image component class

  • selected - Applied when selected prop is true

  • vertical - Applied when `orientation="vertical"


ComponentElement

The component used to render the image component.


'horizontal''vertical'

The layout orientation of the component.

Default: 'vertical'

A placeholder image to be displayed before the image is loaded.


Applies a selected visual effect to the image.

Default: false

Nodes to be inserted before image.

For LTR locales, the nodes are inserted to the left of the image. For RTL locales, the nodes are inserted to the right. If nothing is specified, nothing, not even an empty container, is rendered in this place.


String value or Object of values used to determine which image will appear on a specific screenSize.

A higher-order component that adds behaviors to an ui/ImageItemui/ImageItem.ImageItemBase.

Includes: ui/ForwardRefui/ForwardRef.ForwardRef