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

@xsolla/xui-list

v0.174.3

Published

A cross-platform list container with optional section titles and interactive rows. Rows support hover, press, and basic keyboard activation.

Downloads

9,894

Readme

List

A cross-platform list container with optional section titles and interactive rows. Rows support hover, press, and basic keyboard activation.

Installation

npm install @xsolla/xui-list

Imports

import { List } from "@xsolla/xui-list";

Quick start

import * as React from "react";
import { List } from "@xsolla/xui-list";

export default function QuickStart() {
  return (
    <List>
      <List.Row>Item 1</List.Row>
      <List.Row>Item 2</List.Row>
      <List.Row>Item 3</List.Row>
    </List>
  );
}

API Reference

<List>

Container. Extends BoxProps; layout/style props are forwarded to the underlying Box.

| Prop | Type | Default | Description | | ---------- | ----------- | ------- | ------------------------------------------------------------------------------------------------------------- | | testID | string | — | Test ID for testing frameworks. On web this renders as data-testid; on React Native it renders as testID. | | children | ReactNode | - | Rows and section titles. |

<List.Row>

| Prop | Type | Default | Description | | ----------- | ------------ | ------- | --------------------------------------------------------------- | | children | ReactNode | - | Row content. | | hoverable | boolean | false | Render hover and press background even without a press handler. | | onClick | () => void | - | Web click handler. Takes precedence when both are set. | | onPress | () => void | - | Cross-platform press handler. |

Inherits ThemeOverrideProps (themeMode, themeProductContext).

When a press handler or hoverable is set, the row is focusable (tabIndex={0}) and activates on Enter or Space.

<List.Title>

Section heading rendered above a group of rows.

| Prop | Type | Default | Description | | ---------- | ----------- | ------- | ----------- | | children | ReactNode | - | Title text. |

Inherits ThemeOverrideProps (themeMode, themeProductContext).

Examples

Sectioned list

import * as React from "react";
import { List } from "@xsolla/xui-list";

export default function Sectioned() {
  return (
    <List>
      <List.Title>Fruits</List.Title>
      <List.Row>Apple</List.Row>
      <List.Row>Banana</List.Row>
      <List.Title>Vegetables</List.Title>
      <List.Row>Carrot</List.Row>
      <List.Row>Broccoli</List.Row>
    </List>
  );
}

Interactive rows

import * as React from "react";
import { List } from "@xsolla/xui-list";

export default function Interactive() {
  return (
    <List>
      <List.Row onPress={() => console.log("1")}>Activate row 1</List.Row>
      <List.Row onPress={() => console.log("2")}>Activate row 2</List.Row>
      <List.Row hoverable>Hoverable but inert</List.Row>
    </List>
  );
}

Settings menu (with Cell)

import * as React from "react";
import { List } from "@xsolla/xui-list";
import { Cell } from "@xsolla/xui-cell";
import { ChevronRight } from "@xsolla/xui-icons-base";

export default function SettingsMenu() {
  return (
    <List>
      <List.Title>Account</List.Title>
      <List.Row onPress={() => {}}>
        <Cell>
          <Cell.Text title="Profile" />
          <Cell.Slot>
            <ChevronRight size={16} />
          </Cell.Slot>
        </Cell>
      </List.Row>
      <List.Row onPress={() => {}}>
        <Cell>
          <Cell.Text title="Security" />
          <Cell.Slot>
            <ChevronRight size={16} />
          </Cell.Slot>
        </Cell>
      </List.Row>
    </List>
  );
}

Keyboard

| Key | Action | | ------- | ----------------------------------------------------- | | Enter | Activate the focused row when a press handler is set. | | Space | Activate the focused row when a press handler is set. |

Accessibility

  • Interactive rows are focusable via tabIndex={0} and respond to Enter/Space.
  • The current implementation passes role: "list" / role: "listitem" inside the style object, where it has no effect on either web or native (role is not a valid CSS property and native ignores it). Treat List as visually-only and add semantic markup yourself if list semantics are required (e.g. wrap children in a <ul> / <li> outside the package) and provide an accessible label on the container.
  • Decorative icons inside rows should be marked aria-hidden.