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
1
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.

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by27.27%
Maintainers
1
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
$ gulp server

Usage

let Collapse = require('../src');
let Panel = Collapse.Panel;

ReactDOM.render(
	<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>, target);

demo

http://uxcore.github.io/uxcore/components/uxcore-collapse/

API

Props

Collapse

配置项类型必填默认值功能/备注
activeKeyarraystringthe first panel key当前激活 tab 面板的 key 默认无,accordion模式下默认第一个元素
defaultActiveKeyarraystringnull初始化选中面板的 key
accordionBooleanfalse手风琴模式
onChangeFunction切换面板的回调

Collapse.Panel

配置项类型必填默认值功能/备注
keyString对应 activeKey
headerReact.Element or String面板头内容

Keywords

FAQs

Package last updated on 10 Dec 2015

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