import List from '@precursor/list';Example
- Choose a theme
- Arrange the primitives
- Add the content
import List, { ListItem } from '@precursor/list';
export default function Example() {
return (
<List type="ol">
<ListItem>Choose a theme</ListItem>
<ListItem>Arrange the primitives</ListItem>
<ListItem>Add the content</ListItem>
</List>
);
}
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
childrenRequired | React.ReactNode | — | — |
type | "ol" | "ul" | 'ul' | — |