Skip to content

stefanhofman/stylist-rs-tailwind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages