longbridge/gpui-kit
 Watch   
 Star   
 Fork   
6 days ago
gpui-kit

v0.6.1

GPUI Kit v0.6.1

GPUI Kit v0.6.1 brings multi-cursor editing, automatic bracket pairing, smart indentation, and headless UI testing. This release also improves Markdown rendering, text selection, accessibility, and everyday component behavior.

Editor and Text Input

  • Multi-cursor editing with Alt-click to add cursors and Shift-Alt-drag for column selection. Column selections now preserve their width across short lines. (#2837, #2987)
  • Automatic bracket pairing and smart indentation on Enter, with configurable language rules and independent auto_close and smart_indent preferences. (#3018)
  • Improved search behavior: reopening search restores focus, preserves the active match, and reveals matches after manual scrolling. (#2932, #2953, #2955)
  • Fixed cursor movement across CRLF boundaries and pending syntax highlighting when switching languages. (#2986, #2994)
  • Fixed selection drag-autoscroll in virtualized lists and ensured scrolling stops when the selection gesture ends. (#2948, #2941)
  • Reduced unnecessary updates when scroll and paint state remain unchanged. (#2988)

Headless UI Testing

Applications can now test interactions and layout through gpui_kit::test, enabled by the test-support feature. The testing API supports scoped queries, native input events, state snapshots, and waiting for deferred updates.

This release also expands integration coverage across core controls, menus, dialogs, tables, and dock layouts, with separate Metal rendering checks on macOS. (#3005, #3019)

Markdown and Text Rendering

  • Added opt-in YAML frontmatter rendering through MarkdownExtensions::frontmatter() and FrontmatterPlugin. Supported mappings render as structured metadata; unsupported content falls back to a YAML code block. (#2850)
  • Corrected hard and soft line-break rendering. (#2945, #2947)
  • Improved inline code styling with rounded backgrounds and a monospace font. (#2949)
  • Fixed stale measurements when replacing a document with another containing the same number of blocks. (#2946)

Components and Accessibility

  • Button: added preferred tooltip placement and restored the selected background for ghost buttons. (#2971, #2938)
  • Select: exposed committed values, improved accessible activation, and made on_dismiss run consistently regardless of how the popup closes. (#2973, #2984)
  • Sidebar: added Styled support and label_style to SidebarMenuItem. (#2957)
  • Icons: added SVG byte support in component icon slots and shared Lucide icon names while preserving default icons. (#2980, #3020)
  • Fixed panel resizing flicker and list measurement when the configured measurement row is absent. (#2907, #2975)
  • Improved accessibility for dialog close buttons and calendar items. (#2969, #2996)
  • Added fallback to an installed monospace font when the default is unavailable. (#3009)

Runtime and Platform Improvements

  • Improved GPUI Shell application compatibility and exposed list and uniform_list to scripts. (#2939, #2952)
  • Refined FPS reporting using frame cost and the display's refresh rate, with sustained frames enabled by default. (#2944, #2954, #2956)
  • Restricted Windows native-menu uxtheme loading to System32. (#2974)
  • Updated Tree-sitter and removed the previous workaround. (#2990)

Documentation

The documentation website now uses Astro, with improved App Stories browsing and preserved sidebar scroll position. Component API documentation is separated from shared Kit guides, with expanded coverage of fonts, editor search, UI testing, and AI-assisted development.

Thank you to everyone who contributed code, documentation, testing, and feedback!

What's Changed

New Contributors

Full Changelog: https://github.com/longbridge/gpui-kit/compare/v0.6.0...v0.6.1

11 days ago
gpui-kit

v0.6.0

GPUI Kit v0.6.0

v0.6.0 is a major expansion of the project since v0.5.0. The project is now GPUI Kit: a layered toolkit for building desktop applications with GPUI. This release introduces an unstyled foundation crate, a single-dependency facade, a scriptable application runtime, a substantially expanded component set, richer text editing and rendering, motion, accessibility, and new developer tooling.

This release note focuses on user-visible additions, improvements, API changes, and deprecations. It intentionally omits fixes made while the new v0.6.0 features were being developed.

GPUI Kit and the new crate architecture

The repository and ecosystem are now named GPUI Kit, and the documentation has moved to gpui-kit.com. GPUI Component remains the styled component layer within the toolkit. (#2927)

The new architecture separates reusable behavior from presentation:

  • gpui-kit is the recommended facade for applications. It re-exports GPUI and the enabled Kit layers, provides application(), init(), and an actions! macro, and keeps matching GPUI dependencies together.
  • gpui-base provides unstyled behavior, state, interaction, and infrastructure primitives. It includes text editing and rich text, selection, dock layout, virtual lists, dialogs, popovers, controls, motion, history, and navigation foundations.
  • gpui-component remains the complete styled UI system and builds on gpui-base.
  • gpui-shell is a new scriptable application runtime that lets a Rust host expose GPUI capabilities to JavaScript. (#2821)
  • gpui-fps adds a real-time FPS and resource HUD, including CPU, memory, GPU, and frame-tail reporting. (#2704)
  • gpui-wry is now the standalone WebView integration crate.

Applications may continue depending directly on gpui-component, or adopt the new facade:

[dependencies]
gpui-kit = "0.6"
use gpui_kit::*;
use gpui_kit::component::Root;

fn main() {
    gpui_kit::application().run(|cx| {
        gpui_kit::init(cx);
        // Open windows and build the application here.
    });
}

New components and application building blocks

The styled component library has grown well beyond the v0.5.0 surface:

  • Application structure: Command palette, NativeMenu, StatusBar, Pagination, Stepper, HoverCard, AlertDialog, FocusTrap, and a redesigned declarative Dialog API.
  • Data entry and display: Combobox, Rating, ProgressCircle, a new lightweight declarative Table, and multi-row headers, cell selection, custom row heights, resizing constraints, and batched export for DataTable.
  • Communication UI: composable Message, MessageScroller, Bubble, Attachment, and Marker components for chat and assistant-style interfaces. (#2832)
  • Loading and feedback: Shimmer, animated progress states, configurable notification placement and width, dismiss callbacks, and optional OS notification-center delivery.
  • Navigation: NavStack provides browser-style push, back, and forward navigation with animated transitions. (#2922)

Existing controls received broader composition and interaction APIs, including context menus for sidebar and tree items, async submenus, collapsible sidebar modes, animated tabs and tooltips, programmatic resizable panels, reverse sliders, configurable calendar week starts, accessible labels and control IDs, and drag-and-drop support for list items.

Text editing, rich text, and selection

Text editing is now split into purpose-built controls:

  • Input / InputState for single-line text, masks, validation, and number entry.
  • Textarea / TextareaState for multiline text, rows, soft wrapping, auto-grow, and chat-style submit behavior.
  • Editor / EditorState for code editing, highlighting, line numbers, folding, decorations, diagnostics, search, replacement, and LSP integration. (#2691)

The editor adds transaction-based undo, code folding, inline completions, semantic tokens, document colors, configurable wrapping indent, selection APIs, readonly mode, replace/replace-all actions, and broader syntax highlighting. Tree-sitter language support is now split into per-language Cargo features, so applications can select only the grammars they need.

TextView now lives in gpui-base, with the existing gpui_component::text API retained as a compatibility facade. Rich text gains incremental Markdown parsing, inline and local images, Markdown extensions/plugins, math blocks, table actions and horizontal scrolling, source-preserving copy, link-click handling, multi-click selection, drag auto-scroll, and max_lines. A new SelectableText element participates in window-level selection without requiring a rich-text document. (#2881)

Window-level TextSelection can combine selection across multiple TextView and SelectableText regions, enabling document-like selection and copying across independently rendered elements.

Docking, layout, and scrolling

Docking now has a reusable pure-data layout foundation in gpui-base. It supports serializable tiles, tab groups, split resizing, drag/drop placement reporting, undo/redo, animated drop placeholders, snapping neighboring panel edges, and LayoutChanged events. This makes dock layout state usable independently of the styled dock UI.

Scrolling behavior has been revised for better interoperability between nested scroll containers. Highlights include explicit Scrollable identity, axis locking for trackpad gestures, improved scrollbar visibility transitions, responsive Markdown tables, and width-aware virtual-list measurement.

Motion and visual system

gpui-base::motion introduces a layered animation system with keyframes, timing functions, spring motion, presence transitions, staggered animation, reveal helpers, and interpolation. Components now use spring transitions where targets can change during an active animation. (#2866)

The theme system adds gradient backgrounds, global radius consistency, configurable focus rings, selection and Markdown-table semantic colors, custom primary-button and switch colors, and improved dark-mode syntax highlighting. Form controls, popovers, tabs, sliders, and scrollbars have been visually refined for clearer interaction states.

Charts and visualization

Charts gain:

  • SankeyChart and RadarChart.
  • Candlestick charts.
  • Interactive hover tooltips.
  • Negative bar values and a value axis.
  • Arbitrary fills such as gradients, per-bar corner radii, grid and x-axis options.
  • Pie-chart leader-line labels and Radar-chart element labels.
  • More efficient Sankey topology and deduplicated, value-indexed band scales.

Accessibility and platform integration

Accessibility information is now exposed across the component set, including roles, labels, values, toggle state, and stable control IDs. Buttons and checkboxes support role overrides and presentational roles, while editable controls expose their values to accessibility clients.

Native integration expands with OS-native application and context menus, menu item images, improved Linux client-side decorations, window-manager-aware title-bar controls, notification-center bridging, and an owned raw Wry WebView handle.

Performance and developer experience

  • Large editor documents now use a SumTree-based wrapping cache, incremental foreground parsing, bounded syntax injections, and cheaper rewrapping and outdent paths.
  • Large TextView replacements are parsed off the UI thread, while Markdown blocks are shared instead of cloned each frame.
  • Dock, input, notification, color-picker, chart tooltip, and shell rendering paths avoid redundant work and unnecessary rerenders.
  • The new gpui-fps HUD reports presented frames and process resource use for profiling live applications.
  • The documentation site now includes English and Chinese references for GPUI Base, GPUI Shell, the component library, design guidance, coding guidance, and runnable examples.
  • A distributable GPUI Kit skill bundles the design and coding guides for coding agents.

Breaking API changes and migration

Input, Textarea, and Editor are separate APIs

InputState is now single-line only. Migrate multiline inputs to TextareaState and code editors to EditorState:

- use gpui_component::input::{Input, InputState};
+ use gpui_component::input::{Textarea, TextareaState};

- InputState::new(window, cx).multi_line(true).auto_grow(3, 8)
+ TextareaState::new(window, cx).auto_grow(3, 8)
- InputState::new(window, cx).code_editor("rust")
- Input::new(&state)
+ EditorState::new("rust", window, cx)
+ Editor::new(&state)

Input-only adornments such as prefix, suffix, the mask toggle, and the clear button are not properties of Textarea or Editor; compose those actions around the control instead.

Table names

The former stateful Table is now DataTable. Table names the new declarative table element. (#2075)

- use gpui_component::table::Table;
+ use gpui_component::table::DataTable;

The selector-column option was renamed from row_selector to row_header. (#2366)

Divider is now Separator

The module, types, and DescriptionList method were renamed. (#2335)

- gpui_component::divider::Divider
+ gpui_component::separator::Separator

- DescriptionList::divider()
+ DescriptionList::separator()

List and table pagination delegates

ListDelegate::is_eof and TableDelegate::is_eof were renamed to has_more, with the semantics made explicit and the default set to false. (#1757)

WebView moved to gpui-wry

The gpui-component webview feature was removed. Depend on the standalone gpui-wry crate instead. (#1759)

History is split by purpose

The former undo-oriented History<T: HistoryItem> API and HistoryItem trait were removed. Use:

  • History<T> for browser-style navigation with back/forward semantics.
  • UndoHistory<T> for grouped undo/redo transactions. (#2923)

Dock construction and extension APIs were redesigned

Dock persistence keeps the v0.5.0 JSON shape, but the Rust construction and extension APIs changed as the dock was split into an unstyled data/behavior layer and a styled renderer. (#2772)

  • DockItem was replaced by the pure-data DockLayout builder.
  • Styled applications should wrap panels with panel_handle and use the panel_view, tile_view, add_panel_view, and add_tile_view entry points.
  • The old Panel trait is split between gpui_base::dock::Panel for behavior and gpui_component::dock::Panel for presentation.
  • The entity formerly named TabPanel is now gpui_base::dock::TabGroup; styled TabPanel is a renderer.
  • The tiles entity is now TilesState; Tiles is its renderer.
  • StackPanel and the public Dock entity were removed. Manage layouts through DockArea and DockPlacement.
  • Placement-specific accessors such as left_dock() and setters such as set_left_dock() were replaced by layout(placement), set_dock, set_dock_size, is_dock_open, and remove_dock.
  • DockEvent::DragDrop(item) is now DockEvent::DragDrop { item, target }, exposing where a host drag item landed. (#2661)

Dialog and chart tooltip construction

  • Dialog::new(window, cx) is now Dialog::new(cx). The declarative dialog API uses trigger, content, DialogHeader, DialogTitle, DialogDescription, and DialogFooter. (#2067)
  • Low-level chart tooltip construction now uses Tooltip::new(cursor, bounds); Tooltip::position() and TooltipPosition were removed. TooltipState::new no longer takes a position argument, and CrossLine is dashed by default. (#2500)

Smaller source-level changes

  • popover_style moved from the StyledExt trait to ThemeStyled. (#2726)
  • ScaleBand categorical domains now require Eq + Hash rather than PartialEq; the bound also applies to the band type used by BarChart and CandlestickChart. (#2885)
  • Boolean readers were normalized: can_go_to_definition() is now has_definition(), while dock readers such as can_zoom() and can_close() are now is_zoomable() and is_closable(). (#2810)
  • The default wrapping indent for multiline editors is now WrappingIndent::Same.
  • Editor now defaults to the theme's monospace font and derives row height from its configured font size. Explicit .font_family() and .text_size() overrides still take precedence. (#2794)

Public seam structs now use builders and accessors

Several public context and snapshot structs now have private fields so they can evolve compatibly. Replace struct literals and direct field reads with their constructors, builders, and accessors. (#2706)

Affected APIs include:

  • InputContextMenuCapabilities
  • InputPresentation
  • CalendarItemState
  • ComboboxTriggerCtx, renamed to ComboboxTriggerContext
  • setting::RenderOptions

For example:

- capabilities.disabled
- capabilities.selection
+ capabilities.is_disabled()
+ capabilities.has_selection()

- CalendarItemState { kind, active, .. }
+ CalendarItemState::new(kind).active(active)

GPUI and package names

  • The workspace now targets the gpui-pre 0.3.x family rather than GPUI 0.2.x, bringing the corresponding upstream GPUI API changes.
  • The assets package is now gpui-kit-assets (Rust path gpui_kit_assets) instead of gpui-component-assets.
  • The project uses Rust edition 2024.

Deprecated APIs

  • animation::Transition is retained as a deprecated alias; use animation::EffectTransition. This is distinct from the new motion::Transition timing policy.
  • EasingError::InvalidBezierX is retained for source compatibility; use EasingError::InvalidBezierControlPoint.
  • AlertDialog::overlay_closable is deprecated because alert dialogs intentionally cannot be dismissed by pressing the backdrop.
  • Root::clear_text_selection and the window text-selection extension methods selected_text, has_text_selection, clear_text_selection, and end_text_selection are deprecated; use the corresponding gpui_base::TextSelection APIs.
  • SearchableListDelegate::section is deprecated; implement render_section_header to receive Window and App access.

Thanks to all contributors

@zanmato @FlyingYu-Z @duanebester @stayhydated @CherryWorm @Moulberry @stippi

And thanks to all our first-time contributors:

Thank you for helping make GPUI Kit better! ❤️

2026-02-05 18:58:01
gpui-kit

v0.5.1

  • chore: Fix compilation errors on macOS caused by core-text dependency.
2025-12-08 10:54:12
gpui-kit

v0.5.0

ColorPicker

  • color_picker: Add radius on focus border by @madcodelife in #1652
  • color_picker: Only change value when it's confirmed by @madcodelife in #1682

ContextMenu

  • context_menu: Prevent mouse events when menu popped out by @madcodelife in #1750

Divider

  • divider: Add support for dashed divider by @madcodelife in #1730

image

Dock

  • dock: Render title bar based on visible panels by @madcodelife in #1697
  • dock: Use visible_panels method by @madcodelife in #1698
  • dock: Refactor Panel trait to has &mut self and &mut Context<Self> by @huacnlee in #1716
  • dock: Fix title method missed thing in PR #1716 by @huacnlee in #1718
  • dock: Improve Panel trait changed title to return impl IntoElement by @huacnlee in #1719
  • dock: Fix tab panel first tab left border overlap issue by @madcodelife in #1734
  • dock: Simplify DockItem API by @huacnlee in #1732

Editor

  • editor: Add InlineCompletion LSP support by @duanebester in #1736

https://github.com/user-attachments/assets/8e437f1e-9792-4417-b070-0a1dd8de6024

  • editor: Improve scroll to support position at the edge of the editor on click by @huacnlee in #1672
  • editor: Fix cursor direction not resetting after mouseup by @FlyingYu-Z in #1708

Input

  • input: Fix scroll to offset to support soft wrap mode by @huacnlee in #1671
  • input: Change to input text size to smaller by @huacnlee in #1703
  • input: Adjust blink cursor height by @huacnlee in #1704
  • input: Add to support CodeEditor as single line mode by @zanmato in #1696

image

  • input: Fix resetting highlighting for single line code editor by @zanmato in #1742
  • input: Fix wrong font being used in Input by @zanmato in #1706

List

  • list: Refactor ListDelegate to easy access delegate by @huacnlee in #1713
  • list: Fix list item may overflow by @huacnlee in #1726

Menu

  • menu: Use defer to avoid race conditions with click listeners by @zanmato in #1651
  • menu: Add check_side to PopupMenu to support display check at right side by @huacnlee in #1677

Chat

  • plot: Add support for stacked chart by @madcodelife in #1681
  • chart: Add candlestick chart by @amiyzku in #1749

SCR-20251126-puzm

image

Scrollbar

Refactor Scrollbar API to easy to use, and tidy scrollbar position in entire of components.

image

  • scrollbar: Remove Scrollbar::uniform_scroll, use Scrollbar::vertical instead by @huacnlee in #1659
  • scrollbar: Manage ScrollbarState in Scrollbar internal by @huacnlee in #1690
  • scrollbar: Introduce overflow_scrollbar to adds Scrollbars to elements by @huacnlee in #1694

Setting

  • setting: Add Settings component by @huacnlee in #1632

https://github.com/user-attachments/assets/3c6315d9-1183-419c-bb17-a8f7ac0cf25c

Sidebar

  • sidebar: Refactor Sidebar to support Styled by @huacnlee in #1658
  • sidebar: Fix Sidebar group and items gap by @huacnlee in #1705

Table

  • table: Refactor TableDelegate to easy to access delegate by @huacnlee in #1712
  • table: Add render_header method to support custom table header by @huacnlee in #1746

Tab

  • tab: Allow tab item to fill remaining space by @obito-t in #1654

TextView

  • text_view: Adding optional code block actions to the TextView by @duanebester in #1725

Screenshot 2025-12-01 at 8 38 22 PM

Theme

  • theme: Update macos-classic list even color and improved details by @obito-t in #1679, #1699, #1702
  • theme: Add switch.thumb.background theme config support by @han1548772930 in #1685
  • theme: Use difference color like the window background for TitleBar by @huacnlee in #1686

TitleBar

  • title_bar: Improve Styled support to TitleBar by @huacnlee in #1693
  • title_bar: Fix TitleBar drag area on macOS, and only handle show window menu when it supports by @huacnlee in #1710
  • title_bar: Remove window control bg color in normal mode by @huacnlee in #1720

Webview

  • webview: Public the raw wry webview handle by @madcodelife in #1739

Others

  • chore: Update to use Rust edition 2024 by @huacnlee in #1669
  • chore: Fix dialog scroll by #1694 change by @huacnlee in #1695
  • docs: Fix minor docs issues by @zanmato in #1656
  • docs: Remove outdated note on README by @huacnlee in #1700
  • docs: Add icons for page background to website by @huacnlee in #1701
  • docs: Fix typo in notifications doc by @huacnlee in #1747

Full Changelog: https://github.com/longbridge/gpui-component/compare/v0.4.2...v0.5.0

2025-11-27 10:06:47
gpui-kit

v0.4.2

  • menu: Use defer to avoid race conditions with click listeners by @zanmato in #1651
  • input: Fix scroll to offset to support soft wrap mode. by @huacnlee in #1671
  • editor: Improve scroll to support position at the edge of the editor on click. by @huacnlee in #1672
  • tab: Allow tab item to fill remaining space. by @obito in #1654
  • chore: Upgrade tracing-subscriber to fix CVE-2025-58160 @orbisai0security by in #1678
2025-11-20 17:26:14
gpui-kit

v0.4.1

Button

  • button: Add dropdown_caret option to show a caret icon to end of button. by @huacnlee in #1637

Chart

  • chart: Add support to set stroke color on LineChart by @madcodelife in #1629

Dock

  • dock: Don't close tab via action when it can't be closed via context menu by @CherryWorm in #1581
  • dock: Add a way for Panels to track the tab bar they belong to by @CherryWorm in #1580

DropdownButton

  • dropdown_button: Add more button option methods to DropdownButton. by @huacnlee in #1633

Editor

  • editor: Fix may crash on render indent guides. by @huacnlee in #1619

Icon

  • icon: Rework icons to make use of the IconNamed trait by @andreaskrath in #1640

Input

  • input: Avoid blocking vertical scroll events in single-line mode (#1562) by @chulingera2025 in #1572
  • input: Fix x offset resetting for single line inputs by @zanmato in #1591

List

  • list: Fix incorrect selected item background color by @madcodelife in #1648

Menu

  • menu: Fix icon width to tidy indent in PopupMenuItem. by @madcodelife in #1620

Notification

  • notification: Fix close animation not working when closed from content by @Moulberry in #1578

NumberInput

  • number_input: Improve style details by @madcodelife in #1606
  • number_input: Use input border on the buttons by @madcodelife in #1634

Resizable

  • resizable: Improve to avoid panels from improperly resizing on container resizing. by @CherryWorm in #1560

Resizable & Dock

  • resizable, dock: Improve Panel adjust size logic on layout changed. by @CherryWorm in #1588

Root

  • root: Improve new method argument to use into <AnyView>. by @huacnlee in #1594

Select

  • select: Add render prop to customize item title display. by @obito-t in #1638

Sidebar

  • sidebar: Improve Sidebar to allows caret icon to expand submenu. by @huacnlee in #1642
  • sidebar: Add to support disable state to sidebar item. by @adriano-tumino in #1645

Slider

  • slider: Remove thumb tooltip by @CherryWorm in #1582

Table

  • table: Split TableState to state.rs by @huacnlee in #1599
  • table: Use click event instead of mouse down event by @madcodelife in #1622

Theme

  • theme: Use font_family for all elements. by @huacnlee in #1618
  • theme: Fix Flexoki Light focus color. by @huacnlee in #1647

Tiles

  • tiles: Add auto-snap support for tiles panel to top and left edges by @ihavecoke in #1577

New Contributors

Full Changelog: https://github.com/longbridge/gpui-component/compare/v0.4.0...v0.4.1

2025-11-17 10:04:39
gpui-kit

v0.4.0

Break Change

In this version we have make a lot of breaking changes to improve the overall API consistency and usability.

If you are upgrading from v0.3.x, please check the changelog carefully and adjust your code accordingly, the PR links are provided for more details of each change.

  • breadcrumb: Rename item to child and add children method. by @huacnlee in #1519
  • clipboard: Removed content method from Clipboard. by @huacnlee in #1520
  • dialog: Rename Modal to Dialog. by @huacnlee in #1538
  • form: Renamed column to columns. by @huacnlee in #1522
  • form: Rename FormField to Field. by @huacnlee in #1539
  • input, select, date_picker: Refactor cleanable to have argument and default to false. by @Moulberry in #1506
  • list, table: Refactor List, Table to have ListState, TableState. by @huacnlee in #1468
  • notification: Add &mut Self to content and action method. by @huacnlee in #1569
  • radio: Rename on_change to on_click for RadioGroup. by @huacnlee in #1517
  • resizable: Simplify Resizable API. by @huacnlee in #1459
  • select, list: Update searchable default to false. by @huacnlee in #1504
  • sheet: Rename Drawer to Sheet. by @huacnlee in #1527
  • spinner: Rename Indicator to Spinner. by @huacnlee in #1526
  • tab: Refactor creation to use builder pattern by @madcodelife in #1553
  • table: Change context_menu method in TableDelegate to mutable window and cx. by @huacnlee in #1487
  • toggle: Refactor Toggle, ToggleGroup API. by @huacnlee in #1515

What's New

Assets

Button

  • button: Remove duplicate disabled style by @madcodelife in #1529
  • button_group: Add vertical by @Moulberry in #1537
  • button_group: Fix overriding button click when no on_click by @Moulberry in #1546

Chart

  • chart(pie): Support dynamic inner and outer radius by @madcodelife in #1444
  • chart(bar): Fix the label is not centered by @madcodelife in #1448

Collapsible

  • collapsible: Add Collapsible. by @huacnlee in #1525

ContextMenu

  • context_menu: Fix ContextMenu to cover parent element area. by @huacnlee in #1566

Input & Editor

  • editor: Fix indent guides render position. by @huacnlee in #1524
  • input: Improve double-click for word selection by @FlyingYu-Z in #1491
  • input: Delete selected text with modifier keys by @Moulberry in #1497
  • input: Avoid blocking vertical scroll events in single-line mode by @chulingera2025 in #1572
  • input: Fix x offset resetting for single line inputs by @zanmato in #1591

Field

  • form(field): Fix label line break not working by @madcodelife in #1558

Label

  • label: Fix Label highlight may crash of not a char boundary. by @huacnlee in #1574

List

  • list: Fix incorrect next selection when select index is none by @madcodelife in #1498
  • list: Add searchable, search_placeholder option to List and Select. by @huacnlee in #1503
  • list: Avoid select item when selectable(false). by @huacnlee in #1508

Menu

  • menu: Add item and export PopupMenuItem with builder methods to PopupMenu. by @huacnlee in #1445
  • menu: Fix #1545 Popover change broken submenu click in dropdown menu. by @huacnlee in #1563

Modal

  • modal, drawer: Block background interaction when Modal, Drawer is active. by @FlyingYu-Z in #1483
  • modal: Adjust close button position. by @huacnlee in #1532

NumberInput

  • number_input: Improve style details by @madcodelife in #1606

Popover

  • popover: Renamed no_style to appearance like the Input. by @huacnlee in #1523
  • popover: Improve Popover API. by @huacnlee in #1545
  • popover: Fix #1545 incorrect to sync on_open_change to state. by @huacnlee in #1557
  • popover: Fix click trigger to close popover. by @huacnlee in #1559
  • popover: Revert defer_to focus on Popover open. by @huacnlee in #1571

Progress

  • progress: Fix incorrect border radius by @madcodelife in #1555

Select

  • select: Impl SelectItem for &'static str. by @huacnlee in #1451
  • select: Avoid reopen menu when clearing selection by @madcodelife in #1484
  • select: Restore the selection when canceling by @madcodelife in #1501

Slider

  • slider: Improve Slider interaction to click on bar to drag. by @CherryWorm in #1544
  • slider: Add option to choose between linear and logarithmic scale by @CherryWorm in #1543
  • slider: Remove thumb tooltip by @CherryWorm in #1582

Tab

  • tab: Use on_click instead of action for TabBar dropdown menu. by @huacnlee in #1454

Table

  • table: Keep scroll to item at bottom when move down. by @huacnlee in #1499
  • table: Fix Table stripe mode overflow scroll. by @huacnlee in #1530
  • table: fix row border missing on first frame by @Moulberry in #1505
  • table: Fix missing border on first frame by @Moulberry in #1533

Theme

  • theme: Export more theme options for schema. by @huacnlee in #1442
  • theme: Allows to use alpha color for active_border but at least 0.3. by @obito-t in #1531

Tiles

  • tiles: Add tile_radius theme option and default 0px. by @huacnlee in #1441
  • tiles: Add scrollbar_show option to Tiles by @ihavecoke in #1496
  • tiles: Add to support panel auto-snap while drag movement by @ihavecoke in #1552

WebView

  • webview: Add inspector feature to enable WebView developer tools by @ihavecoke in #1564

Other Changes

  • docs: Fix typo in README charting description by @gurjeet in #1434
  • docs: Remove incorrect Accessibility section. by @huacnlee in #1439
  • docs: Update chart by @madcodelife in #1446
  • docs: Improve docs add more details. by @huacnlee in #1447
  • docs: Add Context & ElementId doc. by @huacnlee in #1460
  • docs: Update docs website style. by @huacnlee in #1488
  • docs: Fix footer and add note to home page. by @huacnlee in #1511
  • docs: Update version to v0.4.0-preview1 in docs. by @huacnlee in #1534
  • chore: Rename Dropdown to Select, TextInput to Input. by @huacnlee in #1449
  • chore: Keep spawn task on it owner. by @huacnlee in #1456
  • chore: Update List, Tree, Kbd exports. by @huacnlee in #1467
  • chore: Move searchable to ListState and SelectState. by @huacnlee in #1507
  • chore: Remove unused image example. by @huacnlee in #1510
  • chore: Standardize the overall API and improve docs. by @huacnlee in #1516
  • chore: Dependency gpui-macros/inspector to inspector features by @ihavecoke in #1568

New Contributors

Full Changelog: https://github.com/longbridge/gpui-component/compare/v0.3.1...v0.4.0

2025-10-27 13:52:29
gpui-kit

v0.3.1

What's Changed

Input

Editor

List

Tiles

Theme

Example

Others

New Contributors

Full Changelog: https://github.com/longbridge/gpui-component/compare/v0.3.0...v0.3.1

2025-10-24 10:46:34
gpui-kit

v0.3.0

New features

  • menu: Add AppMenuBar. by @huacnlee in #1338

    image
  • tree: Add Tree by @huacnlee in #1373

    image

Button

  • button: Add support for on_hover event by @madcodelife in #1341
  • button: Fix the on_hover does not respond by @madcodelife in #1346
  • button: Support specified anchor to dropdown button by @madcodelife in #1367

Checkbox

  • checkbox: Do not stop propagation when click by @madcodelife in #1385

Dropdown

  • dropdown: Use display_title for item title if present by @stippi in #1410

Editor

  • editor: Fix code actions not display by @huacnlee in #1347
  • editor: Add delay to trigger hover popover by @huacnlee in #1361
  • editor: Improve hover popover delay by @huacnlee in #1389

Highlighter

  • highlighter: Make SyntaxHighlighter::styles method public for external use by @huacnlee in #1415

Input

  • input: impl Selectable for TextInput that allow it as trigger for popover by @richerfu in #1353
  • input: Fix set_value when Input is disabled by @huacnlee in #1362
  • input: Grouping input history to avoid IME placeholder by @huacnlee in #1375
  • input: Fix Input panics when masked have non-ASCII characters by @huacnlee in #1382
  • input: Stop propagation on scroll wheel by @huacnlee in #1406
  • input: Hide scrollbar when not overflow in auto grow mode by @huacnlee in #1407
  • input: Fix Input to prepare text wrapper by @huacnlee in #1417

Markdown

  • markdown: Use list for Markdown render and add scrollbar by @huacnlee in #1357

Menu

  • menu: Fix submenu item selection when multiple submenus exist by @ihavecoke in #1342
  • menu: Fix trigger action with context by @huacnlee in #1372

Plot

  • plot: Add StepAfter kind to StokeStrike by @itsmgo in #1356
  • plot: Add stroke style per each Y series by @itsmgo in #1364
  • plot(line_chart): Add missing natural stroke style by @madcodelife in #1366

Scrollbar

  • scrollbar: Fix scroll to show mode by @huacnlee in #1381
  • scrollbar: Update scrollbar background color to transparent for all themes by @huacnlee #1421

VirtualList

  • virtual_list: Fix VirtualList to limit only allow 1 direction scrollable by @huacnlee in #1386
  • virtual_list: Fix VirtualList by measure item to get correct content_size to avoid scroll overflow by @huacnlee in #1388

Docs

Documentation website is online: https://longbridge.github.io/gpui-component

Others

  • chore: Update GPUI v0.2.2 by @huacnlee in #1416

New Contributors

  • @richerfu made their first contribution in #1353
  • @itsmgo made their first contribution in #1356
  • @han1548772930 made their first contribution in #1370
  • @YougLin-dev made their first contribution in #1398
  • @vincenthz made their first contribution in #1404
  • @stippi made their first contribution in #1410
2025-10-09 15:21:10
gpui-kit

v0.2.0

🚀 First release version to crates.io.

Improvements

  • Refactor tab key to switch focus by @huacnlee (#991)

Input & Text

  • Disable context menu item for disabled input by @huacnlee (#1280)
  • Use shape line for soft wrap lines by @huacnlee (#1293)
  • Fix RopeExt replace method may not on a char boundary by @huacnlee (#1295)
  • Update RopeExt to use LF style for line calc when \r present by @huacnlee (#1296)
  • Fix Input to unselect on blur by @huacnlee (#1303)
  • Avoid scroll on select all by @huacnlee (#1305)
  • Clean to reset selection and scroll offset by @huacnlee (#1326)
  • Implement styled for number input by @madcodelife (#1333)

Editor

  • Add document_colors LSP by @huacnlee (#1329)
  • Add to support move vertical for soft wrapped lines by @huacnlee (#1312)
  • Avoid trigger hover on selection by @huacnlee (#1287)
  • Improve slice_line method performance by @huacnlee (#1290)
  • Improve TextWrapper performance by @huacnlee (#1292)
  • Improve line number width by max lines by @huacnlee (#1291)
  • Improve enter indent level performance by @huacnlee (#1304)
  • Fix hover definition to hide immediately by @huacnlee (#1309)
  • Fix Editor crash when content is empty by @huacnlee (#1314)
  • Split Input and Editor background color by @huacnlee (#1323)

TextView & Highlight

  • Refactor TextView/SyntaxHighlighter with async parsing to improve performance by @sunli829 (#1299)
  • Support custom code block style by @huacnlee (#1288)

Theme & Style

  • Fix Ayu theme comment color by @huacnlee (#1316)
  • Update macos-classic dark theme color by @huacnlee (#1320)
  • Update theme schema: remove card, add group_box by @huacnlee (#1321)
  • Fix button label overflow by @huacnlee (#1322)
  • Bind element ID after button creation by @madcodelife (#1325)
  • Let normal/active tabs share border to prevent flash by @huacnlee (#1327)

Menu & Context

  • Better handle hover for menu item by @huacnlee (#1332)
  • Add flex property to custom popup menu items by @ihavecoke (#1335)
  • Improve MenuItem paddings by @huacnlee (#1339)

Bug Fixes

  • Fix input mark text render by @huacnlee (#1298)
  • Fix Editor crash when empty string triggers placeholder by @huacnlee (#1314)
  • Fix context menu subscription leak by @huacnlee (#1337)
  • Fix UTF-8 boundary in highlighter using clip_offset by @xudesheng (#1317)

Chores & Internal

  • use async-wry by @sunli829 (#1300)
  • Remove unnecessary RefCell by @sunli829 (#1301)
  • Remove Wef code (moved to external crate) by @Copilot (#1302)
  • Interpolate folder path via rust embed by @carlocorradini (#1318)
  • Implement styled for custom style by @madcodelife (#1319)

New Contributors

Full Changelog: https://github.com/longbridge/gpui-component/compare/v20250925...v0.2.0