JSPM

@rmwc/list

5.0.5-alpha.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27150
  • Score
    100M100P100Q187043F
  • License MIT

RMWC List component

Package Exports

  • @rmwc/list
  • @rmwc/list/README-COLLAPSIBLE.md
  • @rmwc/list/README-VARIANTS.md
  • @rmwc/list/README.md
  • @rmwc/list/collapsible-list.css

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rmwc/list) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Lists

Lists are continuous, vertical indexes of text or images.

ListItems can be verbose to import and render. A 'SimpleListItem' component has been created to improve the developer experience which contains a default template for ListItems. This page shows some basic usage, be sure to check out the variants page to see all of the ways you can customize your lists.

Standard Usage

import {
  List,
  ListItem
} from '@rmwc/list';

<List>
  <ListItem>Cookies</ListItem>
  <ListItem>Pizza</ListItem>
  <ListItem>Icecream</ListItem>
</List>

Simplified Usage

import {
  List,
  SimpleListItem
} from '@rmwc/list';

<List twoLine>
  <SimpleListItem graphic="star_border" text="Cookies" secondaryText="Chocolate chip" metaIcon="info" />
  <SimpleListItem graphic="local_pizza" text="Pizza" secondaryText="Pepperoni" metaIcon="info" />
  <SimpleListItem activated graphic="mood" text="Icecream" secondaryText="Chocolate cookie dough" meta="Winner!" />
</List>
import { Docs } from '@rmwc/base/utils/document-component';
import * as docs from './docgen.json';

<Docs src={docs} components={[
  'List',
  'ListItem',
  'ListItemPrimaryText',
  'ListItemSecondaryText',
  'ListItemGraphic',
  'ListItemMeta',
  'ListDivider',
  'ListGroup',
  'ListGroupSubheader',
  'SimpleListItem'
]} />