Skip to main content

Item

shadow

Item components are blocks that can contain various types of content, including text, icons, avatars, images, inputs, and other standard or custom elements. Item elements are usually found inside List elements.

Basic usage

Use with images

Use with buttons

Use with icons

When to use

Use wje-item to improve readability, scannability, and contextual understanding of content.

When not to use

Do not replace structured interactive data with media-only presentation when precision is needed.

Accessibility

Provide alt text, maintain readable contrast, and include text equivalents for icon-only controls.

Best Practices

  • Compress media and use lazy loading in larger collections.
  • Keep information priority consistent across cards/lists.
  • Avoid duplicating the same meaning in icon and text without added value.

Attributes and Properties

labelColorStyles

DescriptionControls color styling related to label-color-styles.
Attributelabel-color-styles
Typeobject
Default{}

inheritedAriaAttributes

DescriptionSets ARIA metadata used to improve accessibility semantics for assistive technologies.
Attributeinherited-aria-attributes
Typeobject
Default{}

multipleInputs

DescriptionControls whether multiple-inputs is enabled and affects component behavior.
Attributemultiple-inputs
Typeboolean
Defaultfalse

focusable

DescriptionControls whether focusable is enabled and affects component behavior.
Attributefocusable
Typeboolean
Defaulttrue

button

DescriptionControls whether button is enabled and affects component behavior.
Attributebutton
Typeboolean
Defaultfalse

disabled

DescriptionDisables user interaction with the component.
Attributedisabled
Typeboolean
Defaultfalse

counter

DescriptionControls whether counter is enabled and affects component behavior.
Attributecounter
Typeboolean
Defaultfalse

routerDirection

DescriptionSets the text value stored in router-direction.
Attributerouter-direction
Typestring
Default'forward'

type

DescriptionSets the input type that controls value parsing and validation.
Attributetype
Typestring
Default'button'

Events

No events available for this component.

Methods

isClickable

DescriptionReturns the CSS styles for the component.
Signature() => boolean

CSS Shadow Parts

NameDescription
nativeThe native part.
innerThe inner part.

CSS Custom Properties

NameDescription
--wje-item-backgroundSets the background color of the item. Accepts any valid CSS color value.
--wje-item-colorDefines the text color for the item. Accepts any valid CSS color value.
--wje-item-padding-startSpecifies the left padding of the item. Accepts any valid CSS length.
--wje-item-padding-endSpecifies the right padding of the item. Accepts any valid CSS length.
--wje-item-padding-topSpecifies the top padding of the item. Accepts any valid CSS length.
--wje-item-padding-bottomSpecifies the bottom padding of the item. Accepts any valid CSS length.
--wje-item-inner-padding-startSpecifies the left inner padding of the item. Accepts any valid CSS length.
--wje-item-inner-padding-endSpecifies the right inner padding of the item. Accepts any valid CSS length.
--wje-item-inner-padding-topSpecifies the top inner padding of the item. Accepts any valid CSS length.
--wje-item-inner-padding-bottomSpecifies the bottom inner padding of the item. Accepts any valid CSS length.
--wje-item-border-radiusDefines the border radius, providing rounded corners for the item.
--wje-item-border-widthSets the border width of the item. Accepts any valid CSS length.
--wje-item-border-styleSpecifies the style of the border, such as solid, dashed, or dotted.
--wje-item-border-colorDefines the color of the item's border. Accepts any valid CSS color value.
--wje-item-min-heightSets the minimum height of the item to ensure consistent layout.
--wje-item-transitionSpecifies the transition effects for the item, such as for hover or focus states.
--wje-item-inner-box-shadowAdds a shadow effect inside the item for a 3D appearance.

Slots

NameDescription
startThe start slot.
endThe end slot.
errorThe error slot.
helperThe helper slot.