nikgraf / belle

Configurable React Components with great UX

Home Page:http://nikgraf.github.io/belle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

List component (brainstorming)

luisrudge opened this issue · comments

it would be great to have some sort of list component. (for reference: http://material-ui.com/#/components/lists)

@luisrudge alright, what's the value to you for such a list component? built-in styling? which parts are important?

Yes. Built-in style is the most important thing I can think of.
I think the api should be something like this:

<List>
  <ListItem title={'some description text'} icon={'path/to/icon'} text={'Item 1'} />
  <ListItem title={'some description text'} image={'path/to/image'} text={'Item 2'} />
</List>

Not sure if you prefer props or children.. This could have something like ListItemIcon or ListItemImage if you prefer to use children

ops, I just noticed material-ui has some code in there. But yeah, the api should be something like what they have

even #124 can benefit from this, since we can have a sidebar component with the menu being a list