#ui-framework #tailwind #yew #web-ui #web-apps #ui

wonopui

WonopUI: A parameterized YEW UI framework for building flexible and customizable web applications

4 releases

0.0.5 Nov 7, 2024
0.0.4 Oct 15, 2024
0.0.3 Oct 8, 2024
0.0.2 Oct 8, 2024

#607 in Web programming

Download history 249/week @ 2024-10-05 175/week @ 2024-10-12 16/week @ 2024-10-19 2/week @ 2024-10-26 111/week @ 2024-11-02 32/week @ 2024-11-09 13/week @ 2024-11-16 9/week @ 2024-11-23 8/week @ 2024-11-30

91 downloads per month

MIT license

490KB
10K SLoC

Wonop UI - Tailwind components for YEW (BETA)

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.

Features

  • Seamless integration with Yew framework
  • Utilizes Tailwind CSS for rapid and flexible styling
  • Parameterized components for easy customization
  • Responsive design out of the box
  • Feature flags for each component to minimize bundle size

Installation

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" />

Dependencies

~14–24MB
~353K SLoC