【文件属性】:
文件名称:tabs:用钩子React标签
文件大小:268KB
文件格式:ZIP
更新时间:2021-04-27 20:56:07
react hooks tabs JavaScript
@ bumaga / tabs
React的无头标签组件
特征
:package: 超小型,381 B和3.5kB
:prohibited: 没有样式,只有逻辑。 随心所欲,随心所欲
:fishing_pole: 组件和挂钩API
安装
npm install @bumaga/tabs
yarn add @bumaga/tabs
用法
带有组件
import React from 'react'
import { Tabs , Tab , Panel } from '@bumaga/tabs'
export default ( ) => (
< Tabs>
< div>
< Tab> < button > Tab 1 < / button > < / Tab >
< Tab> < button > Tab 2 < / button > < / Tab >
< Tab> < button
【文件预览】:
tabs-master
----ship.config.js(146B)
----.eslintrc(201B)
----rollup.config.js(1KB)
----.github()
--------renovate.json(302B)
--------workflows()
----src()
--------index.js(2KB)
----example()
--------yarn.lock(260KB)
--------src()
--------package.json(677B)
----test()
--------index.test.js(927B)
----.gitignore(54B)
----readme.md(1KB)
----.babelrc.js(159B)
----package-lock.json(801KB)
----package.json(2KB)
----changelog.md(1006B)