Link

A styled hyperlink component.

As Button

Use as_button to render a Link component with Button styling.

Anatomy

Import all parts and piece them together.

use leptos::prelude::*;
use singlestage::Link;

#[component]
pub fn LinkAnatomy() -> impl IntoView {
    view! { <Link /> }
}

API Reference

Link

Creates a styled hyperlink.

Custom Attributes
NameTypeDefaultDescription
as_buttonboolfalse

Set whether or not this Link should appear as a Button.

mimetypeString""

Renamed <a> `type` attribute to avoid name collisions.

sizeString""

For use with as_button, specify the size to render the button.

variantString"link"

For use with as_button, specify the style of button to render.

Implements global and a attributes.