Import
Usage
Props
The anchor ID used to generate the hash link. When provided, displays a clickable link icon.
Object-based class names for conditional styling.
All standard HTML div attributes are supported (except the standard
class prop).Behavior
When the link icon is clicked, it copies the full URL including the anchor hash to the clipboard. The link icon has low opacity by default and becomes fully visible on hover.
Styling
The component applies these default classes:group flex items-center gap-2 scroll-mt-32- Groups items with flex layout and scroll margin for fixed headers
opacity-10- Low opacity by defaultgroup-hover:opacity-100- Full opacity on parent hover- Smooth transition animations with
duration-300and fasterduration-75on hover