import Link from "next/link"; import { ArrowRight, Code2, Zap, Palette, Layout, BarChart3, Terminal, Blocks, SquareCode, } from "lucide-react"; import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock"; export default function HomePage() { return (
{/* Hero Section */}

GPUI Component

Rust GUI components for building fantastic cross-platform desktop application by using{" "} GPUI

Get Started View on GitHub
{/* Features Section */}

40+ Components

Comprehensive library of cross-platform desktop UI components for building feature-rich applications.

High Performance

Virtualized Table and List components for smooth rendering of large datasets with minimal memory footprint.

Themeable

Built-in Theme system with customizable colors, supporting multiple themes and dark mode out of the box.

Flexible Layouts

Dock layout for panel arrangements, resizable panels, and freeform layouts for any application structure.

Data Visualization

Built-in chart components for visualizing data with Line, Bar, Area, and Pie charts.

Code Editor

High-performance code editor with LSP support, syntax highlighting, powered by{" "} Tree Sitter {" "} and{" "} Rope .

Simple and Intuitive API

Get started with just a few lines of code. Stateless components make it easy to build complex UIs.

) -> impl IntoElement { div() .v_flex() .gap_2() .size_full() .items_center() .justify_center() .child("Hello, World!") .child( Button::new("ok") .primary() .label("Let's Go!") .on_click(|_, _, _| println!("Clicked!")), ) } } fn main() { let app = Application::new(); app.run(move |cx| { // This must be called before using any GPUI Component features. gpui_component::init(cx); cx.spawn(async move |cx| { cx.open_window(WindowOptions::default(), |window, cx| { let view = cx.new(|_| HelloWorld); // This first level on the window, should be a Root. cx.new(|cx| Root::new(view.into(), window, cx)) })?; Ok::<_, anyhow::Error>(()) }) .detach(); }); }`} >
{/* CTA Section */}

Ready to get started?

Explore our comprehensive documentation and start building amazing desktop applications today.

Read Documentation Quick Start Guide
); }