Files
navop/examples
胡飞 3f243537ec style(core): 格式化和调整代码结构以提升可读性
- 统一多处函数参数和调用的换行风格,保持代码风格一致
- 规范多处模块导入顺序和空行,提升代码整洁度
- 优化结构体字段与函数定义的缩进和排版格式
- 调整组件创建和订阅事件代码格式,增强代码逻辑清晰度
- 统一代码块和表达式的换行方式,避免超长行
- 整理并规范导出相关类型和模块的声明顺序
- 修复部分换行和逗号位置,提高代码规范性
- 对部分闭包和事件处理函数的参数换行为多行,提升可读性
2026-02-28 11:23:04 +08:00
..
2026-02-15 11:51:18 +08:00
2026-02-15 11:51:18 +08:00
2026-02-15 11:51:18 +08:00

GPUI Component basic examples

This folder contains basic examples of how to use the GPUI Component library. Each example demonstrates a specific feature or functionality of the library.

Unlike the examples in the story folder, these examples focus on 1 example for 1 feature, making it easier to understand and implement specific functionalities in your own projects.

Contributing

Feel free to contribute more examples to this folder!

If you have a specific use case or feature you'd like to demonstrate, please create a new example file and submit a pull request. We will happy to merge it into the repository.

When creating a new example, please follow these guidelines:

  1. Keep 1 example just doing 1 thing for more clarity.
  2. Testing the example to ensure it works as expected.
  3. Write some comment at some key parts of the code to explain what it does.
  4. Following the code style and name style used in the existing examples or in entire of GPUI Component.