vivi
vivi is a component library for Slint.
vivi provides currently the following two sets of components:
foundation: Base components that can be used to create a custom component set.magic: Ready to use component set with a custom design based on Catppuccin.
Examples
There is the Gallery that contains an overview of all magic components vivi provides.
How to use with Rust
- Add
vivi_uias build dependency to yourCargo.toml:
[]
= { = "1.6" }
[]
= { = "1.6" }
= { = "0.1" }
- Use
vivi::import_paths()in yourbuild.rsfile. It will make coop's files visible as@vivi.
- Add an import to your Slint file:
import { MagicWindow, FilledButton } from "@vivi/magic.slint";
export component MyApp inherits MagicWindow {
preferred-width: 600px;
preferred-height: 400px;
title: "MyApp";
FilledButton {
text: "Click me";
}
}
License
The source code of vivi and examples are available under MIT license.