Crates.io | wonopui |
lib.rs | wonopui |
version | 0.0.5 |
source | src |
created_at | 2024-10-08 10:37:15.890474 |
updated_at | 2024-11-07 09:12:10.290616 |
description | WonopUI: A parameterized YEW UI framework for building flexible and customizable web applications. |
homepage | https://github.com/wonop-io/wonopui |
repository | https://github.com/wonop-io/wonopui |
max_upload_size | |
id | 1401004 |
size | 492,300 |
Wonop UI is a parameterized UI framework that leverages Tailwind CSS for use with the Yew framework in Rust. It provides a set of customizable components and utilities to streamline the development of web applications using Yew.
You can find more information in the documentation.
To use Wonop UI in your Yew project, add the following to your Cargo.toml
:
[dependencies]
wonopui = { version = "0.0.2", features = ["everything"] }
Then initialise Tailwind CSS:
npx tailwindcss init
Add the following to your tailwind.config.js
:
module.exports = {
content: [
"./src/**/*.rs",
"./target/wonopui.json",
"./target/tailwindcss.txt",
"./target/**/wonopui.json",
"./target/**tailwindcss.txt"
],
theme: {
extend: {},
},
plugins: [],
};
Add the following to your index.html
:
<link data-trunk rel="tailwind-css" href="tailwind.css" />