#chip #egui #component #compact #tags #display #action

egui_chip

compact component to display tags, selections, or actions

1 unstable release

new 0.1.0 Feb 25, 2025

#16 in #chip

MIT/Apache

2.5MB
556 lines

egui_chip: compact component to display tags, selections, or actions

Features

  • Customizable options for appearance
  • Supports moving from one chip to another
  • Supports deleting chip with delete or backspace keys
  • Integration with the egui framework

Example

use egui_chip::ChipEditBuilder;

let chip_edit = ChipEditBuilder::new(", ")
    .unwrap()
    .frame(true)
    .texts(["hello", "world"])
    .build();

Sample app

cargo run --example simple

lib.rs:

Egui Chip

egui_chip is a library for creating and configuring ChipEdit instances in the egui framework. The crate is inspired from Material's chip. This crate provides a fluent interface for setting various options and parameters for ChipEdit components.

Usage

Add this crate to your Cargo.toml:

[dependencies]
egui_chip = "0.1.0"

Examples

use egui_chip::ChipEditBuilder;

let chip_edit = ChipEditBuilder::new(", ")
    .unwrap()
    .frame(true)
    .texts(["hello", "world"])
    .build();

Features

  • Customizable options for appearance
  • Supports moving from one chip to another
  • Supports deleting chip with delete or backspace keys
  • Integration with the egui framework

Dependencies

~5–13MB
~158K SLoC