Link
A link to show with all of customizations.
# Demo
This is a sample paragraph with some Link.
This is a sample paragraph with some custom styled Link.
# 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 { NLink } from 'nayan';
const Link = () => {
return (
<div>
<div className="text-text">
This is a sample paragraph with some <NLink>Link</NLink>.
</div>
<div className="text-text">
This is a sample paragraph with some custom styled <NLink className="text-red-700">Link</NLink>.
</div>
</div>
);
};
export default Link;