Link
Displays a link.
API Reference
Link
A Rails link_to wrapper with enhanced styling options. Supports both default link styling and button variants for different visual appearances.
Name | Type | Default |
---|---|---|
name | string | nil |
The text content of the link (first argument to link_to). Required unless using a block. | ||
options | hash | nil |
URL or path options passed to link_to (second argument). Can be a string URL, Rails route helper, or hash of options. | ||
html_options | hash | nil |
HTML attributes and styling options. When variant: is provided, uses Button styling. Also supports size: for button variants. |
Examples
On This Page