Linkify

A Linkify component is a UI tool that automatically detects and converts plain text URLs within a content area into clickable hyperlinks. This enhances user experience by allowing easy access to external resources without the need for manual formatting. Linkify typically recognizes various URL formats and ensures that they are presented in a visually distinct manner, making navigation seamless and intuitive.
# Demo
# Attributes
NameTypeDefaultDetails
classNamestring' 'You can customise by passing tailwind classes.
childrenstring | ReactNodeRequiredYou can pass link content as children.
hrefstring' 'You can pass href to render anchor element.
onClick() => voidYou can get callback when link element clicked.
# Usage
import { NLinkify } from 'nayan'; const Linkify = () => { return ( <NLinkify>Checkout our new landing page at nayanui.com and new email hello@nayanui.com</NLinkify> ); }; export default Linkify;