A UI components library built with/for Slint based on ant design.
Check out the interactive documentation.
- Download the library's archive from the latest release.
- Unzip the archive and place the resulting
sleek-uiwherever you want. - Add a library path to use it with
@sleek-uiin your slint code.
Import the widgets from the @sleek-ui/widgets.slint file.
import { UText, UButton } from "@sleek-ui/widgets.slint";
export component AppWindow inherits Window {
width: 400px;
height: 500px;
in-out property <int> counter: 0;
VerticalLayout {
alignment: center;
HorizontalLayout {
alignment: center;
UText {
text: "Counter: \{counter}";
}
}
HorizontalLayout {
alignment: center;
spacing: UAppTheme.spacing-base;
UButton {
variant: primary;
text: "Decrement";
clicked => {
root.counter -= 1;
}
}
UButton {
text: "Reset";
clicked => {
root.counter = 0;
}
}
UButton {
variant: primary;
danger: true;
text: "increment";
clicked => {
root.counter += 1;
}
}
}
}
}wasm-pack build --release --target web --out-dir docs/pkg
- Ant Design Theme editor : https://ant.design/theme-editor
