Skip to content

Library

Components

Every building block of a Pyzed interface, with a preview, the code that draws it, its variants and its API.

Every component of pyzed.ui, plus the layout and content widgets of pyzed, with a live preview, the code that draws it, examples and its API. Components are functions that return widgets, so they combine freely with each other and with the base widgets.

import pyzed as pz
from pyzed import ui
ui.button("Save", self.save, icon="save", variant="solid", keys="ctrl-s")
  • Theme colors. Every component reads the current theme (App.theme, or the window’s theme in multi-window apps), and accepts theme= to use another one.
  • Tokens or hex. Color parameters (color, icon_color, tint…) take a theme token such as "accent", "text_muted" or "error", or a "#rrggbb" color.
  • Messages or callables. on_press, on_select, on_toggle… take a message for update or a callable; those that produce a value (text, bool, id) call it with that value.
  • Icons. icon= takes any Lucide name (pyzed icons lists them).

To see them all running, open the gallery: python examples/gallery.py. Looking for whole screens built from them (login, dashboard, settings, chat, kanban…)? See Blocks.

Buttons and small controls that run something.

6 components · 86 variants

Text, badges, keys, avatars and surfaces.

9 components · 92 variants

Controlled inputs: they show your state and report every change.

12 components · 107 variants

Calendars and fields for dates, ranges and times, in the format you choose.

4 components · 25 variants

Progress, loading, notices and empty states.

7 components · 55 variants

Tables, numbers and small charts drawn with the theme colors.

8 components · 41 variants

Rows, file trees, context menus and collapsible sections.

7 components · 43 variants

Tabs, breadcrumbs and toolbars.

3 components · 17 variants

Things drawn on top of the UI: layers, modals, palettes and notifications.

6 components · 27 variants

Ready-made dialogs with translated buttons.

7 components · 26 variants

Pieces that talk to the operating system: its file dialogs and files dropped from the desktop.

2 components · 14 variants

The frame of an editor-style window: docks, title bar, status bar and panels.

7 components · 35 variants

The code editor, a terminal view, a log console and help boxes.

7 components · 28 variants

The pieces of an AI agent’s chat and settings: tool calls, diffs, plans, history and sign-in.

9 components · 70 variants

The base layout widgets of pyzed (pz.*) every component is built with.

11 components · 57 variants

Base widgets for text, icons, images, Markdown, QR codes and drawing.

9 components · 51 variants