Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

m-tabs

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

m-tabs

m-tabs 移动端标签页选项卡切换组件

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

m-tabs 选项卡/标签页


选项卡/标签页切换组件。

何时使用

TAB栏让用户可以在不同子任务、视图、模式之间切换, 它具有全局导航的作用,是全局功能的主要展示和切换区域,一个TAB标记一个核心功能,TAB之间可以快速点击切换

M-Sui Design 将选项卡分为两类:

  • Tab Bar -A.常规样式(优先选用):它的交互方式允许左右滑动,用于一定空间内无法置入全部标签内容的情况下使用,一栏最多可承载5个标签,多于5个标签时,可以把剩余标签以列表形式收在“选择”内; -B.CapsuleTAB 胶囊样式(局限性强,建议慎用):可用嵌入头部导航条使用
  • APP TAB:一般用于模拟原生app,

API

Tabs

参数说明类型默认值
key初始化当前Tabs的 keyString
defaultActiveKey初始化选中面板的 key,如果没有设置则默认第一个String第一个面板
onChange切换面板的回调Function
centered是否为嵌入式选项卡(底色橙色)booleanfalse
type页签的基本样式,可选 capsuleappnavString'nav'

Tabs.TabPane

参数说明类型默认值
key初始化当前TabPane的 keyString
tab选项卡头显示文字React.Element or String

Keywords

FAQs

Package last updated on 24 May 2017

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