thaw/demo_markdown/docs/_guide/installation.md
2024-07-30 21:53:36 +08:00

495 B

Installation

Installation thaw

cargo add thaw --features=csr

Usage

You just need to import thaw and use it.

// Import all
use thaw::*;
// Import on Demand
use thaw::{Button, ButtonAppearance};

A small example:

use leptos::prelude::*;
use thaw::*;

fn main() {
    mount_to_body(App);
}

#[component]
pub fn App() -> impl IntoView {
    view! {
        <Button appearance=ButtonAppearance::Primary>
            "Primary"
        </Button>
    }
}