New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rmwc/list

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/list

RMWC List component

5.0.20-alpha.0
Source
npm
Version published
Weekly downloads
8K
9.56%
Maintainers
1
Weekly downloads
 
Created
Source

Lists

Lists are continuous, vertical indexes of text or images.

  • import from '@rmwc/list';
  • Import styles:
    • import '@material/list/dist/mdc.list.css';
  • MDC Docs: https://material.io/develop/web/components/lists/

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'
]} />

Keywords

rmwc

FAQs

Package last updated on 08 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts