| Crates.io | stylist-tailwind |
| lib.rs | stylist-tailwind |
| version | 0.2.1 |
| created_at | 2023-12-15 16:35:38.597623+00 |
| updated_at | 2024-04-16 12:37:33.225855+00 |
| description | Adds a bunch of tailwind classes for stylist-rs to quickly add css to yew applications |
| homepage | |
| repository | https://github.com/stefanhofman/stylist-rs-tailwind |
| max_upload_size | |
| id | 1071110 |
| size | 2,592 |
Stylist tailwind contains a bunch of tailwind classes that you can use in Stylist.
Add the following to your Cargo.toml:
stylist-tailwind = "0.2.0"
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>}
}