Socket
Socket
Sign inDemoInstall

@uiw/react-auto-link

Package Overview
Dependencies
5
Maintainers
2
Versions
132
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @uiw/react-auto-link

AutoLink component


Version published
Weekly downloads
483
increased by77.57%
Maintainers
2
Install size
6.38 kB
Created
Weekly downloads
 

Readme

Source

Buy me a coffee Open in unpkg NPM Downloads npm version

将字符串呈现为纯文本,并将 URL 转换为适当的链接元素。

import { AutoLink } from 'uiw';
// or
import AutoLink from '@uiw/react-auto-link';

基础用法

import React from 'react';
import { AutoLink } from 'uiw';

export default function Demo() {
  return (
    <div>
      <AutoLink
        text="uiw uiwjs uiw https://github.com/uiwjs uiwjs http://github.com/uiwjs"
        target="__blank"
      />
    </div>
  )
}

API

参数说明类型默认值
text需要处理的文本String-

Keywords

FAQs

Last updated on 29 Nov 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc