Nth Permutation Mathematics
    Have ideas to improve npm?Join in the discussion! »

    @uiw/react-auto-link
    TypeScript icon, indicating that this package has built-in type declarations

    4.9.0 • Public • Published

    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 -

    Install

    npm i @uiw/react-auto-link

    DownloadsWeekly Downloads

    246

    Version

    4.9.0

    License

    MIT

    Unpacked Size

    11.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar