This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

ulli
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

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

Prop Description Type
list Array of items array
itemFunc Iterator function for each item function
className className for <ul> string
itemClassName className for each <li> string
ItemElement React component or a string to replace each <li> function or string
ListElement React component or a string to replace <ul> function or string

Readme

Keywords

Package Sidebar

Install

npm i ulli

Weekly Downloads

1

Version

2.0.7

License

ISC

Unpacked Size

9.47 kB

Total Files

11

Last publish

Collaborators

  • atte.liimatainen