pub fn button_style(variant: ButtonVariant, size: ButtonSize) -> StyleExpand description
The style of a button of variant and size, for an element that is not
a <button>, such as a link that leads to a form.
use hypersig::html::a;
use hypersig::{Page, Route, Signals};
use hypersig_ui::{ButtonSize, ButtonVariant, button_style};
use serde::{Deserialize, Serialize};
#[derive(Signals, Serialize, Deserialize)]
struct App {}
hypersig::routes! {
fn pages(Router<()>);
const SIGNUP: Route = "/signup" => signup;
}
let link = a::<App>()
.href(SIGNUP.link())
.css(button_style(ButtonVariant::Default, ButtonSize::Lg))
.text("Sign up");