#imgui #ui-kit #immediate

clew-widgets

Opinionated widget collection for the clew UI framework

1 unstable release

Uses new Rust 2024

0.0.1 Jan 3, 2026

#12 in #immediate

MIT/Apache

270KB
6.5K SLoC

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.

Dependencies

~28–40MB
~649K SLoC