List Non Interactable
src / Demo.tsx
1234567891011121314151617181920212223242526272829303132import React, { ReactElement } from "react";
import cn from "classnames";
import { List, SimpleListItem } from "@react-md/list";
import people from "./people";
import Container from "./Container";
import styles from "./NonInteractable.module.scss";
export default function Demo(): ReactElement {
return (
<Container>
<List>
{people.slice(0, 10).map((name) => (
<SimpleListItem
key={name}
className={cn(styles.item, styles.dotted, styles.margin)}
>
{name}
</SimpleListItem>
))}
</List>
<List className={styles.ordered}>
{people.slice(11, 20).map((name) => (
<SimpleListItem key={name} className={cn(styles.item, styles.margin)}>
{name}
</SimpleListItem>
))}
</List>
</Container>
);
}