https://github.com/ihtml5/react-accordion
accordion based on react
https://github.com/ihtml5/react-accordion
accordion collapse es6 javascript react
Last synced: about 2 months ago
JSON representation
accordion based on react
- Host: GitHub
- URL: https://github.com/ihtml5/react-accordion
- Owner: ihtml5
- License: mit
- Created: 2017-06-22T08:26:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-05T05:53:37.000Z (almost 9 years ago)
- Last Synced: 2025-01-18T20:37:22.544Z (over 1 year ago)
- Topics: accordion, collapse, es6, javascript, react
- Language: HTML
- Homepage: http://ihtml5.github.io
- Size: 134 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Accordion 折叠面板
## 开发
1. yarn install
2. yarn start
3. 在编辑器中打开src/components/Accordion中的文件
## 示例图

## Data
```javascript
const data = [{
title: '简介',
list: [{
text: '依赖',
href: 'http://www.baidu.com'
}]
}]
```
## Props
属性
类型
是否必填
默认值
说明
activeIndex
Number
可选
undefined
指定那个面板激活
data
Array
必须
为空
面板的数据集合
fixed
Boolean
可选
false
是否固定折叠面板
data
Array
必须
为空
面板的数据集合
onlyOneOpen
Boolean
可选
false
只有一个面板处于展开状态
width
Number/String
可选
auto
面板宽度