Impulse UI Kit
Frontend framework with shadcn-styled Thaw components, based on Leptos v0.7.
Usage
Just include it into your Cargo.toml:
[]
= { = "https://github.com/impulse-sw/impulse-kit.git", = "0.11" }
Simple application entrypoint
This is all you need to start Leptos application:
setup_app
setup_app will automatically install given log level, set the panic error hook and initialize logs at console.
[!NOTE] If your project is built at debug mode, logs will be set to
DEBUGlevel automatically.
Automated light/dark theme switch
UI Kit supports automated dark Tailwind class switching and also automated Thaw components styling.
To use automated light/dark theme switch, ensure to build your app on top of this index.html example:
Your title
Router utils
UI Kit exposes impulse_ui_kit::router::endpoint to construct full URL of the backend, if this backend provided your frontend also.
// Let assume that your backend is located at `127.0.0.1:8080` with HTTP schema
endpoint // equals to "http://127.0.0.1:8080/some/api/route"
If you need to go on any other page, use impulse_ui_kit::router::redirect:
redirect
Some other utils
See utils.rs file.