stylist-tailwind

Crates.iostylist-tailwind
lib.rsstylist-tailwind
version0.2.1
sourcesrc
created_at2023-12-15 16:35:38.597623
updated_at2024-04-16 12:37:33.225855
descriptionAdds a bunch of tailwind classes for stylist-rs to quickly add css to yew applications
homepage
repositoryhttps://github.com/stefanhofman/stylist-rs-tailwind
max_upload_size
id1071110
size2,592
Stefan Hofman (stefanhofman)

documentation

README

Stylist tailwind contains a bunch of tailwind classes that you can use in Stylist.

Install

Add the following to your Cargo.toml:

stylist-tailwind = "0.2.0"

Usage

For detailed usage, please see documentation.

use yew::prelude::*;
use stylist::Style;

#[styled_component]
fn MyStyledComponent() -> Html {
    html! {<div class={Style::new(tw!("w-full px-4 my-8")).unwrap()}>{"Hello World!"}</div>}
}
Commit count: 12

cargo fmt