6 个版本
0.2.1 | 2024年4月16日 |
---|---|
0.2.0 | 2024年4月16日 |
0.1.4 | 2024年4月7日 |
0.1.1 | 2023年12月15日 |
2 在 #stylist
725KB
11K SLoC
Stylist tailwind 包含了一组 tailwind 类,您可以在 Stylist 中使用。
安装
在您的 Cargo.toml
中添加以下内容
stylist-tailwind = "0.2.0"
用法
有关详细用法,请参阅 文档。
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>}
}
依赖关系
~7–18MB
~263K SLoC