bee-safe-anchor

safe-anchor ui component for react

Usage no npm install needed!

<script type="module">
  import beeSafeAnchor from 'https://cdn.skypack.dev/bee-safe-anchor';
</script>

README

bee-safe-anchor

npm version Build Status Coverage Status

锚点组件

使用方法

import SafeAnchor from 'bee-safe-anchor';
//或者
var SafeAnchor = require('bee-safe-anchor');

API

参数 说明 类型 默认值
href 跳转地址 string -
onClick 点击事件 function -
disabled 是否禁用 boolean false
tabIndex tab切换 number/string -
componentClass 组件元素 string/element a

开发调试

$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-safe-anchor
$ cd bee-safe-anchor
$ npm install
$ npm run dev