clew-widgets

Crates.ioclew-widgets
lib.rsclew-widgets
version0.0.1
created_at2026-01-03 19:19:16.516163+00
updated_at2026-01-03 19:19:16.516163+00
descriptionOpinionated widget collection for the clew UI framework.
homepage
repositoryhttps://github.com/sysint64/clew
max_upload_size
id2020691
size57,981
Andrei Kabylin (sysint64)

documentation

README

clew-widgets

Opinionated widget collection for the clew UI framework.

Overview

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.

Widgets

Button

Simple text button with hover, active, and focus states.

if clew_widgets::button("Click me").build(ctx).clicked() {
    println!("Button clicked!");
}

VerticalScrollBar / HorizontalScrollBar

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);
    });
}

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Commit count: 0

cargo fmt