npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cas-smartdesign/list-item

v7.8.0

Published

A list item element based on LitElement

Readme

@cas-smartdesign/list-item

A list item element based on lit-element with SmartDesign look & feel.

Requirements

The main entry point requires ES6 & support for Custom Elements v1

Properties

  • caption: string
    • Defines the text of the caption component of the item
  • description: string
    • Defines the text of the description component of the item
  • descriptionIcon: string
    • Defines the icon of the description component of the item
  • selected: boolean
    • Defines whether if the item is in selected state
  • icon: string
    • Defines the icon of the item
  • iconPlaceholder: string
    • Defines the placeholder icon of the item
  • iconBackgroundColor: string
    • Defines the background color to be used behind the icon of the item
  • condensedIconBackground: boolean
    • Defines if the background to be used behind the icon uses a condensed state.
  • contentMode: ContentMode
    • Defines the mode in which it should handle its content
    • Possible values:
      • text - renders the content as text
      • html - renders the content as HTML
  • enableLineClamp: boolean
    • If set and the list item has only one label defined (caption or description) then long texts are wrapped to two lines and line-clamp property is applied to them.
    • The corresponding attribute is enable-line-clamp
  • aria attributes (the corresponding attribute is in camel-case)
    • role: string (default is "listitem")
    • iconAttrAriaLabel: string
  • title attributes (the corresponding attribute is in camel-case)
    • captionAttrTitle: string
    • descriptionAttrTitle: string
    • iconAttrTitle: string
  • disabled (reflects aria-disabled attribute)
    • A disabled item MAY indicate that changing the selected state is not allowed.

All of these properties can be defined with a corresponding (by default with lowercase) attribute as well.

CSS Custom Properties

  • --sd-list-item-font-family
    • Defines the font family of the labels (default is "Segoe UI", "Lucida Sans", Arial, sans-serif)
  • --sd-list-item-label-content-padding
    • Defines the padding of the labels (default is 0 8px)
  • --sd-list-item-caption-font-size
    • Defines the font size of the caption (default is 16px)
  • --sd-list-item-caption-text-color
    • Defines the text color of the caption (default is #111)
  • --sd-list-item-caption-font-weight
    • Defines the font weight of the caption (default is 400)
  • --sd-list-item-description-font-size
    • Defines the font size of the description (default is 13px)
  • --sd-list-item-description-text-color
    • Defines the text color of the description (default is #999)
  • --sd-list-item-description-font-weight
    • Defines the font weight of the description (default is 400)
  • --sd-list-item-text-decoration
    • Defines the text-decoration applied on the caption and description (default is inherit)
  • --sd-list-item-icon-size
    • Defines the size of the icon (default is 24px)
  • --sd-list-item-icon-background-size
    • Defines the background-size CSS property of the icon (default is cover)
  • --sd-list-item-icon-wrapper-width
    • Defines the width of the icon wrapper element (default is 45px)
  • --sd-list-item-level-x-color
    • Defines the color of the level indicator for the x-th level (0-6)
  • --sd-list-item-icon-background-radius
    • Defines the border radius of the condensed icon background element.

Custom events

  • list-item-icon-click
    • This event is dispatched when non-disabled list item icon is clicked