Link

Ripple UI comes with a Link component that is used to navigate to another page or to open a link in a new tab.

Default

Simple example of Link.

Go to Somewhere
HTML
JSX
<a class="link" href="/">Go to Somewhere</a>

Colors

Multiple colors are available for Link.

HTML
JSX
<a class="link" href="/">Go to Somewhere</a>
<a class="link link-primary" href="/">Go to Somewhere</a>
<a class="link link-secondary" href="/">Go to Somewhere</a>
<a class="link link-success" href="/">Go to Somewhere</a>
<a class="link link-error" href="/">Go to Somewhere</a>
<a class="link link-warning" href="/">Go to Somewhere</a>

Ghost

Links with background color on hover.

HTML
JSX
<a class="link link-ghost" href="/">Go to Somewhere</a>
<a class="link link-primary link-ghost-primary" href="/">Go to Somewhere</a>
<a class="link link-secondary link-ghost-secondary" href="/">Go to Somewhere</a>
<a class="link link-success link-ghost-success" href="/">Go to Somewhere</a>
<a class="link link-error link-ghost-error" href="/">Go to Somewhere</a>
<a class="link link-warning link-ghost-warning" href="/">Go to Somewhere</a>

Underline

Links with underline.

HTML
JSX
<a class="link link-underline" href="/">Go to Somewhere</a>
<a class="link link-primary link-underline" href="/">Go to Somewhere</a>
<a class="link link-secondary link-underline" href="/">Go to Somewhere</a>
<a class="link link-success link-underline" href="/">Go to Somewhere</a>
<a class="link link-error link-underline" href="/">Go to Somewhere</a>
<a class="link link-warning link-underline" href="/">Go to Somewhere</a>

Underline on hover.

Links with underline on hover.

HTML
JSX
<a class="link link-underline-hover" href="/">Go to Somewhere</a>
<a class="link link-primary link-underline-hover" href="/">Go to Somewhere</a>
<a class="link link-secondary link-underline-hover" href="/">Go to Somewhere</a>
<a class="link link-success link-underline-hover" href="/">Go to Somewhere</a>
<a class="link link-error link-underline-hover" href="/">Go to Somewhere</a>
<a class="link link-warning link-underline-hover" href="/">Go to Somewhere</a>

API

classDescription
linkLink base class
link-primaryLink with primary color
link-secondaryLink with secondary color
link-successLink with success color
link-errorLink with error color
link-warningLink with warning color
link-ghostLink with bg-gray-4 on hover
link-ghost-primaryLink with bg-primary on hover
link-ghost-secondaryLink with bg-secondary on hover
link-ghost-successLink with bg-success on hover
link-ghost-errorLink with bg-error on hover
link-ghost-warningLink with bg-warning on hover
link-underlineLink with underline
link-underline-hoverLink with underline on hover