import * as React from 'react'; import { ListCheckbox, ListSubHeader, List, ListItem, ListDivider, ListItemText, ListItemContent } from '../../components/list'; import { Button } from '../../components/button'; import Avatar from '../../components/avatar'; import FontIcon from '../../components/font_icon'; const listStyle = { border: '1px solid #EEE', display: 'inline-block', minWidth: 340, }; class ListTest extends React.Component { state: any = { checkbox1: false, checkbox2: true, checkbox3: true, }; handleCheckboxChange = (field: any) => { const newState: any = {}; newState[field] = !this.state[field]; this.setState(newState); }; render() { return (
With simple text and icons

This list can be used inside a Drawer for a list of options or as navigation.

Two text lines, avatar and right icon

Useful for a list of contacts or similar.

Two line options and checkbox items

It can be used to embed little checkboxes in the list. These behave as checkboxes.

Avatar, single text and icon

Similar to a previous one but only with one text line

Simple with just one text line

The most simple list.

List with custom components

Using custom components in list item

Custom Caption { console.log('clicked caption'); }}> Custom caption with events Custom legend with correct height
); } } export default ListTest;