·gpui-element
*

gpui-element

longbridge/gpui-component

使用 GPUI 的低级 Element API(相对于高级 Render/RenderOnce API)实现自定义元素。当您需要对复杂、性能关键的自定义 UI 组件的布局、预绘制和绘制阶段进行最大程度的控制时使用,而这些组件无法通过 Render/RenderOnce 特征实现。

55安装·1热度·@longbridge

安装

$npx skills add https://github.com/longbridge/gpui-component --skill gpui-element

SKILL.md

Prefer Render/RenderOnce for: Simple components, standard layouts, declarative UI

The Element trait provides direct control over three rendering phases:

State flows in one direction through associated types, passed as mutable references between phases.

使用 GPUI 的低级 Element API(相对于高级 Render/RenderOnce API)实现自定义元素。当您需要对复杂、性能关键的自定义 UI 组件的布局、预绘制和绘制阶段进行最大程度的控制时使用,而这些组件无法通过 Render/RenderOnce 特征实现。 来源:longbridge/gpui-component。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/longbridge/gpui-component --skill gpui-element
分类
*创意媒体
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 gpui-element?

使用 GPUI 的低级 Element API(相对于高级 Render/RenderOnce API)实现自定义元素。当您需要对复杂、性能关键的自定义 UI 组件的布局、预绘制和绘制阶段进行最大程度的控制时使用,而这些组件无法通过 Render/RenderOnce 特征实现。 来源:longbridge/gpui-component。

如何安装 gpui-element?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/longbridge/gpui-component --skill gpui-element 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/longbridge/gpui-component

详情

分类
*创意媒体
来源
skills.sh
收录时间
2026-02-01