#tailwind

stylist-tailwind

Adds a bunch of tailwind classes for stylist-rs to quickly add css to yew applications

6 releases

0.2.1 Apr 16, 2024
0.2.0 Apr 16, 2024
0.1.4 Apr 7, 2024
0.1.1 Dec 15, 2023

#14 in #tailwind

Download history 7/week @ 2024-07-23 3/week @ 2024-07-30 1/week @ 2024-09-24 8/week @ 2024-10-01

327 downloads per month

MIT license

725KB
11K SLoC

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>}
}

Dependencies

~8–19MB
~257K SLoC