Package Exports
- @uiw/react-auto-link
- @uiw/react-auto-link/cjs/index.js
- @uiw/react-auto-link/esm/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@uiw/react-auto-link) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
AutoLink 文本超链接
将字符串呈现为纯文本,并将 URL 转换为适当的链接元素。
import { AutoLink } from 'uiw';
// or
import AutoLink from '@uiw/react-auto-link';基础用法
import ReactDOM from 'react-dom';
import { AutoLink } from 'uiw';
ReactDOM.render(
<div>
<AutoLink
text="uiw uiwjs uiw https://github.com/uiwjs uiwjs http://github.com/uiwjs"
target="__blank"
/>
</div>,
_mount_
);API
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| text | 需要处理的文本 | String | - |