Link
Documentation and examples for the Link component.
Preview
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
| href | string | - | The destination URL. |
| className | string | default classes | Visual styling. |
| asChild | boolean | false | Disables default classes for custom child rendering. |
Usage
Follow these steps to add and use Link.
1
Create next app (skip if you already have setup a next app)
terminal
npx create-next-app@latest --yes2
Install
terminal
npx modui-uikit@latest add link3
Implement
typescript
import { Link } from '@/components/ui/link'
export default function Example() {
return (
<Link href="github.com">
This link will redirect user to github.com
</Link>
)
}