Get Started
Components
Dev Tools
More Guides
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
Name | Type | Default | Details |
---|---|---|---|
className | string | ' ' | You can customise by passing tailwind classes. |
children | string | ReactNode | Required | You can pass link content as children. |
href | string | ' ' | You can pass href to render anchor element. |
onClick | () => void | You 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;
# Tags