react-accordion-component
Advanced tools
Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "react-accordion-component", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Minimal UI Accordion component written in React", | ||
@@ -5,0 +5,0 @@ "main": "js/accordion.js", |
@@ -27,3 +27,3 @@ #React Accordion Component | ||
###Example | ||
##Example | ||
```javascript | ||
@@ -39,8 +39,8 @@ var elements = []; | ||
elements.push({ | ||
title: 'Element 2', | ||
onClick: function() { | ||
}, | ||
content: 'Lorem Ipsum...' | ||
}); | ||
elements.push({ | ||
title: 'Element 2', | ||
onClick: function() { | ||
}, | ||
content: 'Lorem Ipsum...' | ||
}); | ||
``` | ||
@@ -51,9 +51,7 @@ When rendering (using `jsx`): | ||
``` | ||
###Voilà | ||
![](public/accordion_half.jpg) | ||
##Voilà | ||
Click in the [fish eye](http://www.fileformat.info/info/unicode/char/25c9/index.htm) to exapand/collapse each accordion element. | ||
![](public/accordion_half.jpg) | ||
![](public/accordion.jpg) | ||
#Notes | ||
@@ -60,0 +58,0 @@ In the `index.html` under `examples/` I've used Source Sans Pro font from Google Fonts. Feel free to change the font in `accordion.css` to your preferred font. |
787693
13
68