Leptos UI
A utility crate for creating UI components in Leptos with Tailwind CSS class merging support. Built on of tw_merge.
Features
clx!macro for creating components with merged Tailwind classesclx_with_props!macro for creating components with custom props and merged Tailwind classes
Usage
Basic Component with clx!
use *;
use clx;
let Card = clx! ;
view!
Advanced Component with clx_with_props!
use *;
use clx_with_props;
let Button = clx_with_props! ;
view!
Installation
Add this to your Cargo.toml:
[]
= "0.1"
License
MIT