mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 06:19:22 -05:00
819 B
819 B
Installation
Installation thaw
cargo add thaw --features=csr
"If you are using the nightly feature in Leptos, please enable Thaw's nightly as well."
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! {
<ConfigProvider>
<Button appearance=ButtonAppearance::Primary>
"Primary"
</Button>
</ConfigProvider>
}
}