2.0.7 • Published 10 months ago

ulli v2.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Ulli React Component

Utility component to render arrays of items to ul > li structure

Usage

import { Ulli } from 'ulli'

const itemFunc = (item, i) => <div>{item}</div>

<Ulli
  list={["item1", "item2"]}
  itemFunc={itemFunc}
/>

// Outputs
// <ul>
//   <li>
//     <div>item1</div>
//   </li>
//   <li>
//     <div>item2</div>
//   </li>
// </ul>

Props

PropDescriptionType
listArray of itemsarray
itemFuncIterator function for each itemfunction
classNameclassName for <ul>string
itemClassNameclassName for each <li>string
ItemElementReact component or a string to replace each <li>function or string
ListElementReact component or a string to replace <ul>function or string
2.0.7

10 months ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.6

1 year ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.5

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago