New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

uxcore-collapse

Package Overview
Dependencies
Maintainers
6
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uxcore-collapse

uxcore-collapse component for uxcore.

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by27.27%
Maintainers
6
Weekly downloads
 
Created
Source

uxcore-collapse Dependency Status devDependency Status

TL;DR

uxcore-collapse ui component for react

Setup develop environment
$ git clone https://github.com/uxcore/uxcore-collapse && cd uxcore-collapse
$ npm install
$ npm start

Usage

<Collapse defaultActiveKey={["1"]} onChange={callback}>
    <Panel header={`This is panel header 1`} key="1">
        <p>{text}</p>
    </Panel>
    <Panel header={`This is panel header 2`} key="2">
        <p>{text}</p>
    </Panel>
    <Panel header={`This is panel header 3`} key="3">
        <p>{text}</p>
    </Panel>
</Collapse>

Demo

http://uxco.re/components/collapse/

API

Props

Collapse

配置项类型必填默认值功能/备注
prefixClsstringoptionalkuma-collapse默认类名,用户可以通过修改此项来完成样式的定制
activeKeyarray/stringoptionalthe first panel key当前激活面板的 key 默认无,accordion 模式下默认第一个元素
defaultActiveKeyarray/stringoptionalnull初始化选中面板的 key
accordionbooloptionalfalse手风琴模式
onChangefunctionoptional(key,activeKey)=>{}切换面板的回调,参数 key 为当前变动的面板,activeKey 为所有激活的面板

Collapse.Panel

配置项类型必填默认值功能/备注
keystringoptionalindex当前面板的 key
prefixClsstringoptionalCollapse.prefixCls默认类名,用户可以通过修改此项来完成样式的定制
headerstring/number/nodeoptionalnull面板头内容
isActivebooloptionalfalse面板当前是否展开,true 表示展开
onItemClickfunctionoptional(isActive, e)=>{}面板头点击事件

Keywords

FAQs

Package last updated on 27 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc