Link

A Link component is a UI element that allows users to navigate from one page or section to another within a web application or website. Typically styled as underlined text or buttons, links provide a clear indication of interactivity. They can point to internal or external resources and often include features like hover effects or icons to enhance user experience and accessibility.
# Demo

Basic Links

Simple anchor links and clickable elements.

Clickable Elements

Links that act as buttons with onClick handlers.

Basic Click Actions

Click Counter Link
Custom Action Link
Download File

Action Results

Click Count: 0

Last Action: None

Links with Icons

Enhanced links with icon elements for better visual appeal.

Navigation Links

Links styled for navigation menus and breadcrumbs.

Main Navigation

Breadcrumb Navigation

Sidebar Navigation

Accessibility Features

Links with proper accessibility attributes and keyboard support.

Keyboard Navigation

All links are keyboard accessible. Use Tab to navigate and Enter/Space to activate.

Focus me and press Enter or Space

Interactive Demo

Try different link interactions and see the results.

Test Links

Primary Action
Secondary Action
Danger Action

Action Results

Total Clicks: 0
Last Action:None
# Usage
# Attributes
NameTypeDefaultDetails
hrefstringOptionalURL for anchor links.
childrenReact.ReactNodeRequiredLink content.
classNamestring' 'You can customise by passing tailwind classes.