| Crates.io | clew-widgets |
| lib.rs | clew-widgets |
| version | 0.0.1 |
| created_at | 2026-01-03 19:19:16.516163+00 |
| updated_at | 2026-01-03 19:19:16.516163+00 |
| description | Opinionated widget collection for the clew UI framework. |
| homepage | |
| repository | https://github.com/sysint64/clew |
| max_upload_size | |
| id | 2020691 |
| size | 57,981 |
Opinionated widget collection for the clew UI framework.
Clew is designed for building custom widgets from scratch. This crate provides ready-to-use widgets for when you don't need highly customized look and just want some quick UI.
Simple text button with hover, active, and focus states.
if clew_widgets::button("Click me").build(ctx).clicked() {
println!("Button clicked!");
}
Draggable scroll bars that integrate with clew's ScrollAreaResponse.
let response = ui::scroll_area().build(ctx, |ctx| {
// content
});
if response.overflow_y {
ctx.provide(response, |ctx| {
widget::<clew_widgets::VerticalScrollBar>().build(ctx);
});
}
Licensed under either of Apache License, Version 2.0 or MIT license at your option.