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.134.0

Published

A cross-platform React list component that provides semantic list structure with optional title sections and interactive rows. Supports hover states and keyboard navigation.

Readme

List

A cross-platform React list component that provides semantic list structure with optional title sections and interactive rows. Supports hover states and keyboard navigation.

Installation

npm install @xsolla/xui-list
# or
yarn add @xsolla/xui-list

Demo

Basic List

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

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

With Title Sections

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

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

Hoverable Rows

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

export default function HoverableList() {
  return (
    <List>
      <List.Row hoverable>Hoverable row 1</List.Row>
      <List.Row hoverable>Hoverable row 2</List.Row>
      <List.Row hoverable>Hoverable row 3</List.Row>
    </List>
  );
}

Clickable Rows

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

export default function ClickableList() {
  const handleClick = (item: string) => {
    console.log('Clicked:', item);
  };

  return (
    <List>
      <List.Row onClick={() => handleClick('Item 1')}>Click me - Item 1</List.Row>
      <List.Row onClick={() => handleClick('Item 2')}>Click me - Item 2</List.Row>
      <List.Row onClick={() => handleClick('Item 3')}>Click me - Item 3</List.Row>
    </List>
  );
}

Anatomy

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

<List>
  <List.Title>Section Header</List.Title>   {/* Section title */}
  <List.Row                                 {/* List item */}
    hoverable={false}                       // Show hover background
    onClick={handleClick}                   // Click handler
    onPress={handlePress}                   // Press handler (RN)
  >
    Row Content
  </List.Row>
</List>

Examples

Settings Menu

import * as React from 'react';
import { List } from '@xsolla/xui-list';
import { Cell } from '@xsolla/xui-cell';
import { User, Bell } from '@xsolla/xui-icons';
import { ChevronRight, Shield } from '@xsolla/xui-icons-base';

export default function SettingsMenu() {
  return (
    <List>
      <List.Title>Account</List.Title>
      <List.Row onClick={() => console.log('Profile')}>
        <Cell>
          <Cell.Slot><User size={20} /></Cell.Slot>
          <Cell.Content>Profile</Cell.Content>
          <Cell.Slot><ChevronRight size={16} /></Cell.Slot>
        </Cell>
      </List.Row>
      <List.Row onClick={() => console.log('Security')}>
        <Cell>
          <Cell.Slot><Shield size={20} /></Cell.Slot>
          <Cell.Content>Security</Cell.Content>
          <Cell.Slot><ChevronRight size={16} /></Cell.Slot>
        </Cell>
      </List.Row>
      <List.Title>Preferences</List.Title>
      <List.Row onClick={() => console.log('Notifications')}>
        <Cell>
          <Cell.Slot><Bell size={20} /></Cell.Slot>
          <Cell.Content>Notifications</Cell.Content>
          <Cell.Slot><ChevronRight size={16} /></Cell.Slot>
        </Cell>
      </List.Row>
    </List>
  );
}

Selection List

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

export default function SelectionList() {
  const [selected, setSelected] = React.useState('option1');

  return (
    <List>
      <List.Row onClick={() => setSelected('option1')}>
        <Radio checked={selected === 'option1'} />
        <span style={{ marginLeft: 12 }}>Option 1</span>
      </List.Row>
      <List.Row onClick={() => setSelected('option2')}>
        <Radio checked={selected === 'option2'} />
        <span style={{ marginLeft: 12 }}>Option 2</span>
      </List.Row>
      <List.Row onClick={() => setSelected('option3')}>
        <Radio checked={selected === 'option3'} />
        <span style={{ marginLeft: 12 }}>Option 3</span>
      </List.Row>
    </List>
  );
}

API Reference

List

Container component for list items.

List Props:

| Prop | Type | Default | Description | | :--- | :--- | :------ | :---------- | | children | ReactNode | - | List rows and titles. |


List.Row

Individual list item component.

List.Row Props:

| Prop | Type | Default | Description | | :--- | :--- | :------ | :---------- | | children | ReactNode | - | Row content. | | hoverable | boolean | false | Show hover background effect. | | onClick | () => void | - | Click handler (web). | | onPress | () => void | - | Press handler (React Native). |


List.Title

Section title component.

List.Title Props:

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

Keyboard Navigation

| Key | Action | | :-- | :----- | | Enter | Activate row (when onClick/onPress set) | | Space | Activate row (when onClick/onPress set) |

Accessibility

  • List uses role="list" semantically
  • Rows use role="listitem"
  • Interactive rows are focusable with tabIndex={0}
  • Keyboard navigation with Enter/Space to activate