Skip to content
Enact

limestone/IconItem

Provides Limestone styled icon item components and behaviors.

Loading Live Preview

A limestone-styled icon item, Marquee and Spottable applied.

Usage:

<IconItem
  background="#1b1b1b"
  bordered
  icon="usb"
/>

Extends: limestone/IconItemlimestone/IconItem.IconItemBase
Wrapped with: limestone/IconItemlimestone/IconItem.IconItemDecorator

A Limestone styled base component for limestone/IconItemlimestone/IconItem.IconItem.

Properties

The background color, gradient, or image of this item. Accepts any format of color, gradient type value, and image url.

Example: '#ff0000', 'radial-gradient(crimson, skyblue)', 'url(https://examplehttps://example.com/image.png) center / cover'


Specifies bordered or borderless.


The custom component rendered as the content of this IconItem.


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:

  • iconItem - The icon item component class

  • content - The class for the content area except title

  • bordered - The border class

  • icon - The icon component class

  • image - The image component class

  • labelContainer - The label container class

  • label - The label component class

  • title - The title component class


The voice control intent.

Default: 'Select'

Disable IconItem and becomes non-interactive.


The icon content. If this is specified, limestone/Iconlimestone/Icon.Icon will be shown as the content.


limestone/IconItem.ImageShape

Source and size for the image. See the details in limestone/IconItemlimestone/IconItem.ImageShape


A label displayed in the content.


'dark''light'

The color of label.

Default: 'light'

'focus''render'

Determines what triggers the label to show.

Default: 'render'

Title text showing below the icon.


'focus''render'

Determines what triggers the title to show.

Default: 'render'

Limestone-specific IconItem behaviors to apply to limestone/IconItemlimestone/IconItem.IconItem.

Includes: limestone/Marqueelimestone/Marquee.MarqueeController
Includes: spotlight/Spottablespotlight/Spottable.Spottable
Includes: limestone/Skinnablelimestone/Skinnable.Skinnable

The shape for image of limestone/IconItemlimestone/IconItem.

Required Propertysize
Object

Size for the image. The following properties should be provided:

  • height - The height of the image

  • width - The width of the image


Required Propertysrc
String | Object

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