Link

Displays a link.

API Reference

A Rails link_to wrapper with enhanced styling options. Supports both default link styling and button variants for different visual appearances.

NameTypeDefault
namestringnil
The text content of the link (first argument to link_to). Required unless using a block.
optionshashnil
URL or path options passed to link_to (second argument). Can be a string URL, Rails route helper, or hash of options.
html_optionshashnil
HTML attributes and styling options. When variant: is provided, uses Button styling. Also supports size: for button variants.

Examples