Skip to content
Enact

limestone/Item

Provides Limestone styled item components and behaviors. Useful for content in lists.

Loading Live Preview

A Limestone styled item with built-in support for marqueed text, and Spotlight focus.

Usage:

<Item>Item Content</Item>

Extends: limestone/Itemlimestone/Item.ItemBase
Wrapped with: limestone/Itemlimestone/Item.ItemDecorator

A Limestone styled item without any behavior.

Extends: ui/Itemui/Item.ItemBase

Properties

Centers the slots and content.


ObjectFunction

Called with a reference to the root component.


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:

  • item - The root class name

  • slotBefore - The slot (container) preceding the text of this component

  • slotAfter - The slot (container) following the text of this component

  • selected - Applied to a selected button


Applies a disabled style and the control becomes non-interactive.


Applies inline styling to the item.


The label to be displayed along with the text.


'above''after''before''below'

The position of the label relative to the primary content, children.


'focus''hover''render'

Determines what triggers the marquee to start its animation.


Nodes to be inserted after children.

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


Aria-label for slotAfter icon.


Nodes to be inserted before children and label.

For LTR locales, the nodes are inserted to the left of the primary content. 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.


Aria-label for slotBefore icon.

Limestone specific item behaviors to apply to limestone/Itemlimestone/Item.ItemBase.

Includes: ui/Itemui/Item.ItemDecorator
Includes: ui/Slottableui/Slottable.Slottable
Includes: spotlight/Spottablespotlight/Spottable.Spottable
Includes: limestone/Marqueelimestone/Marquee.MarqueeController
Includes: limestone/Skinnablelimestone/Skinnable.Skinnable