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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@materialr/list

v2.0.2

Published

Material list implementation for React

Downloads

22

Readme

MaterialR List

@materialr/list

Build Status Coverage Status NSP Status semantic-release

React Material list implementation.

Installation

$ npm install --save @materialr/list

Demo

A full demo is available on the MaterialR website showcasing all variants.

Components

Named exports

import { List } from '@materialr/list';

Props

| Prop | Type | Required | Default | Description | | ----------- | --------------- | -------- | --------- | ---------------------------------------------------- | | avatar | bool | No | false | Whether the list contains avatar as opposed to icons | | children | node | Yes | N/A | The child elements to render inside the list | | className | string | No | undefined | Additional classNames to add | | dense | bool | No | false | Whether a dense list is to be rendered | | display | enum (list/nav) | No | list | Whether to render a list (<ul>) or nav (<nav>) | | twoLines | bool | No | false | Whether this is a list with two-line list items |

import { ListGroup } from '@materialr/list';

| Prop | Type | Required | Default | Description | | ----------- | ----------- | -------- | --------- | ----------------------------- | | children | node | Yes | undefined | The children to render within | | className | string | No | undefined | Additional classNames to add |

import { ListGroupSubheader } from '@materialr/list';

| Prop | Type | Required | Default | Description | | ----------- | ----------- | -------- | --------- | ---------------------------- | | className | string | No | undefined | Additional classNames to add | | title | string | Yes | undefined | The title to render within |

import { ListItem } from '@materialr/list';

| Prop | Type | Required | Default | Description | | ----------------- | ----------- | -------- | --------- | ------------------------------------------------------- | | activated | bool | No | false | Whether this item is activated | | AnchorComponent | func | No | undefined | A React component to render instead of an <a> element | | anchorProps | shape | No | {} | Additional props to pass to the anchor component | | className | string | No | undefined | Additional classNames to add | | children | node | Yes | undefined | The children to render within | | href | string | No | undefined | The url where the list item should navigate to |

import { listItemDivider } from '@materialr/list';

| Prop | Type | Required | Default | Description | | ----------- | ------ | -------- | --------- | ------------------------------------------ | | className | string | No | undefined | Additional classNames to add | | inset | bool | No | false | Whether the divider is inset from the side |

import { ListItemGraphic } from '@materialr/list';

| Prop | Type | Required | Default | Description | | ----------- | ----------- | ---------------- | --------- | ---------------------------- | | avatar | string | without icon | undefined | An avatar image to render | | className | string | No | undefined | Additional classNames to add | | icon | string | without avatar | undefined | A material icon to render | | title | string | with avatar | undefined | A title to add to an avatar |

import { listItemMeta } from '@materialr/list';

| Prop | Type | Required | Default | Description | | ----------- | ----------- | -------- | --------- | ---------------------------- | | className | string | No | undefined | Additional classNames to add | | icon | string | Yes | N/A | A material icon to render | | onClick | func | No | undefined | A click handler method | | title | string | Yes | N/A | The title attribute |

import { ListItemSecondaryText } from '@materialr/list';

| Prop | Type | Required | Default | Description | | ----------- | ------ | -------- | --------- | ---------------------------- | | className | string | No | undefined | Additional classNames to add | | text | string | Yes | N/A | The text to add |

import { ListItemText } from '@materialr/list';

| Prop | Type | Required | Default | Description | | ----------- | ----------- | -------- | --------- | ----------------------------- | | children | node | Yes | undefined | The children to render within | | className | string | No | undefined | Additional classNames to add |