UNPKG

@jsamr/react-native-li

Version:

A pure JavaScript React Native component to render CSS3 compliant ordered and unordered lists.

27 lines (15 loc) 1.13 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@jsamr/react-native-li](./react-native-li.md) &gt; [MarkedList](./react-native-li.markedlist.md) ## MarkedList() function A component which given a counter style, wraps each of its children with a [MarkedListItem()](./react-native-li.markedlistitem.md)<!-- -->. The latter prepends the child with a marker box containing a marker string representation for this child index. See [CSS Lists and Counters Module Level 3, Markers](https://www.w3.org/TR/css-lists-3/#markers)<!-- -->. <b>Signature:</b> ```typescript export default function MarkedList({ children, Container, ...props }: PropsWithChildren<MarkedListProps>): React.ReactElement<any, string | React.JSXElementConstructor<any>>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | { children, Container, ...props } | PropsWithChildren&lt;[MarkedListProps](./react-native-li.markedlistprops.md)<!-- -->&gt; | | <b>Returns:</b> React.ReactElement&lt;any, string \| React.JSXElementConstructor&lt;any&gt;&gt;