Socket
Book a DemoInstallSign in
Socket

uxcore-tabs

Package Overview
Dependencies
Maintainers
5
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uxcore-tabs

easy tab component based on react

latest
Source
npmnpm
Version
0.7.2
Version published
Maintainers
5
Created
Source

uxcore-tabs

--

NPM version build status Test Coverage Dependency Status devDependency Status NPM downloads

Sauce Test Status

TL;DR

tab ui component for react

setup develop environment

$ git clone https://github.com/uxcore/uxcore-tabs
$ cd uxcore-tabs
$ npm install
$ gulp server

Usage

var Tabs = require('uxcore-tabs');
var TabPane = Tabs.TabPane;

var callback = function(key){
}

React.render(
  (
    <Tabs defaultActiveKey="2" onChange={callback}>
      <TabPane tab='tab 1' key="1">first</TabPane>
      <TabPane tab='tab 2' key="2">second</TabPane>
      <TabPane tab='tab 3' key="3">third</TabPane>
    </Tabs>
  ),
  document.getElementById('demo'));

demo

http://uxcore.github.io/uxcore/components/tabs/

API

Tabs

nametypedefaultdescription
activeKeyStringcurrent active tabPanel's key
defaultActiveKeyStringfirst active tabPanel's keyinitial active tabPanel's key if activeKey is absent
onChangeFunction(key)called when tabPanel is changed
onTabClickFunction(key)called when tab is clicked
destroyInactiveTabPaneBooleanfalsewhether destroy inactive tabpane when change tab
typestringlargelarge small filter brick open
animatedbooleantruewhether have animation effect when switch tab
tabBarPositionstringtoptop bottom left right
extraContentReactNodenullthe extra content on tab bar
tabBarStyleobject{}TabBar's style
tabContentStyleobject{}TabContent's style

TabPane

nametypedefaultdescription
keyObjectcorresponding to activeKey
tabStringcurrent tab's title corresponding to current tabPane

Keywords

react

FAQs

Package last updated on 07 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