Crates.io | tailyew |
lib.rs | tailyew |
version | |
source | src |
created_at | 2025-04-03 04:26:36.552146+00 |
updated_at | 2025-04-17 01:39:30.256262+00 |
description | Reusable Yew + Tailwind UI component library |
homepage | https://tailyew.com/ |
repository | https://github.com/apjames93/tailyew |
max_upload_size | |
id | 1617652 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A modern, reusable component library for Yew apps β powered by Tailwind CSS and built in Rust.
TailYew helps you ship fast, beautiful Yew apps using fully-styled, accessible components with dark mode, markdown rendering, charts, modals, and form elements β all built in idiomatic Rust.
TailYew comes with battle-tested components including:
pulldown-cmark
and ammonia
dark:
utilitiesπ See them all at π https://tailyew.com/demo/getting_started
Explore TailYewβs live components, props, and code samples:
π https://tailyew.com
π Get Started in 5 Minutes
...if you already have all the dependencies, a stable toolchain, and emotionally prepared for Rust
git clone https://github.com/apjames93/tailyew-starter my-app
cd my-app
cargo install wasm-pack cargo-watch
brew install binaryen
npm install # for local deps tailwindcss cli and serve
make hot-run
Then open π http://localhost:8080
This gives you hot reloading, built-in Tailwind support, and access to every TailYew component.
Add to your Cargo.toml
:
tailyew = "0.1.2"
Tailwind uses static analysis to detect classes. To expose classes from TailYew's crate, we have the make comand:
make copy-tailyew
This copies crates/tailyew
into your appβs vendor/
directory so Tailwind includes all component class usage.
This is ran with make run-frontend
Make sure your tailwind.config.js
includes the path:
content: [
"./src/**/*.rs", // <---- for other components that you will build in your project
"../crates/tailyew/src/**/*.rs", // <-- for TailYew usage
],
Then use in your app:
use tailyew::atoms::Button;
html! {
<Button>{ "Click Me!" }</Button>
}
crates/tailyew/
βββ src/
β βββ atoms/ # Buttons, Inputs, etc.
β βββ molecules/ # Modals, Forms, Selects
β βββ organisms/ # Full blocks like Nav, Footer
β βββ charts/ # Canvas-based charts (optional)
β βββ form/ # Form layout + state helpers
β βββ icons/ # Reusable SVGs
β βββ lib.rs # Exports all public components
βββ Makefile # Dev commands (build, docs, hot reload)
βββ Cargo.toml # Rust crate config
βββ README.md # You're here
TailYew is an open source project β and weβd love your help!
Before submitting a pull request:
make release-check
passesfrontend/src/pages/
π Thank you for helping grow the Rust UI ecosystem!