2.0.2 • Published 6 years ago

@materialr/list v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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

PropTypeRequiredDefaultDescription
avatarboolNofalseWhether the list contains avatar as opposed to icons
childrennodeYesN/AThe child elements to render inside the list
classNamestringNoundefinedAdditional classNames to add
denseboolNofalseWhether a dense list is to be rendered
displayenum (list/nav)NolistWhether to render a list (<ul>) or nav (<nav>)
twoLinesboolNofalseWhether this is a list with two-line list items
import { ListGroup } from '@materialr/list';
PropTypeRequiredDefaultDescription
childrennodeYesundefinedThe children to render within
classNamestringNoundefinedAdditional classNames to add
import { ListGroupSubheader } from '@materialr/list';
PropTypeRequiredDefaultDescription
classNamestringNoundefinedAdditional classNames to add
titlestringYesundefinedThe title to render within
import { ListItem } from '@materialr/list';
PropTypeRequiredDefaultDescription
activatedboolNofalseWhether this item is activated
AnchorComponentfuncNoundefinedA React component to render instead of an <a> element
anchorPropsshapeNo{}Additional props to pass to the anchor component
classNamestringNoundefinedAdditional classNames to add
childrennodeYesundefinedThe children to render within
hrefstringNoundefinedThe url where the list item should navigate to
import { listItemDivider } from '@materialr/list';
PropTypeRequiredDefaultDescription
classNamestringNoundefinedAdditional classNames to add
insetboolNofalseWhether the divider is inset from the side
import { ListItemGraphic } from '@materialr/list';
PropTypeRequiredDefaultDescription
avatarstringwithout iconundefinedAn avatar image to render
classNamestringNoundefinedAdditional classNames to add
iconstringwithout avatarundefinedA material icon to render
titlestringwith avatarundefinedA title to add to an avatar
import { listItemMeta } from '@materialr/list';
PropTypeRequiredDefaultDescription
classNamestringNoundefinedAdditional classNames to add
iconstringYesN/AA material icon to render
onClickfuncNoundefinedA click handler method
titlestringYesN/AThe title attribute
import { ListItemSecondaryText } from '@materialr/list';
PropTypeRequiredDefaultDescription
classNamestringNoundefinedAdditional classNames to add
textstringYesN/AThe text to add
import { ListItemText } from '@materialr/list';
PropTypeRequiredDefaultDescription
childrennodeYesundefinedThe children to render within
classNamestringNoundefinedAdditional classNames to add
2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.0

6 years ago