Git Product home page Git Product logo

react-accordion's Introduction

Accordion 折叠面板

开发

  1. yarn install
  2. yarn start
  3. 在编辑器中打开src/components/Accordion中的文件

示例图

Data

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 面板宽度

react-accordion's People

Contributors

ihtml5 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.