Expand description
Re-exports§
pub use prelude::*;
Modules§
- animation
- component_
prelude - focus_
ring - Focus ring wrapper with a true offset gap.
- palette
- Role-based color palette for the design system.
- prelude
- The prelude of this crate. When building UI in this app you almost always want to import this.
- radius
- shadcn
--radiusscale mapped to GPUI corner-radius builders. - scrollbars
- semantic
- Theme-driven neutral color roles.
- shadow
- Elevation shadow scale for the design system.
- table_
row - A newtype for a table row that enforces a fixed column count at runtime.
- utils
- UI-related utilities
Structs§
- Action
Panel - A bordered,
semantic::elevated_surface-backed section with a fieldset area (arbitrary child fields, e.g.FormFields) followed by aborder-tfooter with right-aligned Save/CancelButtons. - Agent
Setup Button - AiSetting
Item - A reusable setting item row for AI-related configuration lists.
- Alert
- A tinted, icon-led message box for one of four severities.
- Alert
Dialog - A thin preset on
Modalwith Action/Cancel footer slots. - Alert
Modal - Announcement
Toast - AppShell
- Composes an already-styled
Navbar(top) andSidebar(left) around a main content slot. Pure composition — no new styling logic;NavbarandSidebarown all of their own visuals (colors/borders/width). - Aspect
Ratio - A layout wrapper that preserves a fixed width-to-height ratio.
- Assets
- Embedded icon SVG assets (Heroicons, MIT-licensed).
- Avatar
- An element that renders a user avatar with customizable appearance options.
- Avatar
Audio Status Indicator - An indicator that shows the audio status of a player.
- Avatar
Availability Indicator - Represents the availability and presence status of a collaborator.
- Badge
- A small pill label conveying status or category.
- Banner
- Banners provide informative and brief messages without interrupting the user. This component offers four severity levels that can be used depending on the message.
- Breadcrumb
- A horizontal trail of links showing the user’s location within a hierarchy.
- Breadcrumb
Item - A single crumb within a
Breadcrumbtrail. - Button
- An element that creates a button with a label and optional icons.
- Button
Configuration - Button
Group - A segmented group of connected buttons: no gap between children, a shared divider border between each pair, and rounding only on the outer corners (first/last child).
- Button
Like - A button-like element that can be used to create a custom button when prebuilt buttons are not sufficient. Use this sparingly, as it is unconstrained and may make the UI feel less consistent.
- Button
Link - A button that takes an underline to look like a regular web link. It also contains an arrow icon to communicate the link takes you out of the app.
- Calendar
- Stateful single-month calendar.
- Calendar
Preview - Gallery catalog entry for
Calendar. - Callout
- A callout component for displaying important information that requires user attention.
- Cannot
Remove Last Pane - Returned by
PaneGroup::close_activewhen the active pane is the only leaf left in the tree — aPaneGroupalways keeps at least one pane. - Card
- A surface container for grouping related content, with optional header and footer regions. Neutrals are theme-driven (dark/light aware).
- Carousel
- Horizontal carousel with next/prev navigation and drag-to-snap.
- Carousel
Preview - Gallery catalog entry for
Carousel. - Chart
- A lightweight data-in chart rendered via GPUI
canvas(). - Checkbox
- Checkbox
- Chip
- Chips provide a container for an informative label.
- Circular
Progress - A circular progress indicator that displays progress as an arc growing clockwise from the top.
- Close
Pane - Closes the active pane (no-op if it is the only pane left).
- Code
Editor - A multi-line code area with a line-number gutter, composed from a
multiline
TextInput. Real tree-sitter syntax highlighting is available viaSelf::language, but only whileSelf::read_onlyis set — see that method’s doc comment for why live-typing highlighting is a separately-scoped effort. - Collab
Notification - Combobox
- A typeahead-filtered select: a
TextInput(typed filter) plus aDropdownMenu-style popover list of options filtered by case-insensitive substring match by default, or optional subsequence fuzzy filter viaCombobox::fuzzy_filter. Selecting an option sets the input’s display text viaTextInput::set_text. - Command
- A command palette built on the Combobox input+list pattern with subsequence fuzzy filtering and keyboard navigation (up/down/enter, clamped at ends).
- Command
Palette - A searchable, keyboard-driven command overlay: a text input with a live
fuzzy-filtered list of
CommandPaletteItems. ↑/↓ move the highlighted row, Enter runs it, Esc requests dismissal viaCommandPalette::on_dismiss. - Command
Palette Item - A single entry rendered in a
CommandPalette’s results list. - Configured
ApiCard - Container
- A fixed max-width centering wrapper, matching Tailwind’s
.containerpattern. - Context
Menu - Context
Menu Entry - Copy
Button - Count
Badge - A small, pill-shaped badge that displays a numeric count.
- Date
Picker - Popover date picker: trigger button + floating
Calendar. - Date
Picker Preview - Gallery catalog entry for
DatePicker. - Decorated
Icon - Description
List - A key-value list for displaying structured details (Tailwind “Description List”).
- Diff
Stat - Disclosure
- Divider
- Documentation
Aside - Drawer
- A side panel (“slide-over”) anchored to the right edge of its container.
- Dropdown
Menu - Empty
State - A centered placeholder shown when a list/table/collection has no content.
- Facepile
- An element that displays a collection of (usually) faces stacked horizontally, with the left-most face on top, visually descending from left to right.
- Feed
- A vertical activity timeline: a left connecting line with avatar + text + timestamp entries (Tailwind “Feed”).
- File
Input - A styled file-upload trigger: dashed
semantic::border, an icon, and a “Click to upload” label. - Focus
Down - Moves the active pane to its neighbor below, if any.
- Focus
Left - Moves the active pane to its left neighbor, if any.
- Focus
Right - Moves the active pane to its right neighbor, if any.
- FocusUp
- Moves the active pane to its neighbor above, if any.
- Form
- Layout + validation-state wrapper composing
FormField. - Form
Field - A label + input + help/error/success/warning wrapper for form layouts.
- Gradient
Fade - A gradient overlay that fades from a solid color to transparent.
- Header
Resize Info - Headline
- A headline element, used to emphasize some text and create a visual hierarchy.
- Highlighted
Label - Hover
Card - Rich content shown on hover with delay, composing tooltip hover timing and
Popovercontent styling. - Icon
- Icon
Button - Icon
Decoration - The decoration for an icon.
- Icon
Decoration Kind Iter - An iterator over the variants of IconDecorationKind
- Icon
Name Iter - An iterator over the variants of IconName
- Icon
With Indicator - Indent
Guide Colors - Represents the colors used for different states of indent guides.
- Indent
Guide Layout - Represents the layout information for an indent guide.
- Indent
Guides - Indicator
- Input
Group - Wraps an input-like child (typically an
Entity<TextInput>) with an optional leading and/or trailing slot (icon or button), presenting a single unified border/background around the whole group. - Input
Otp - Fixed-length OTP input with per-slot focus navigation and paste-split.
- Item
- A generic row primitive with media, content, and trailing actions slots.
- Item
Actions - Trailing actions slot for an
Itemrow. - Item
Content - Primary text block for an
Itemrow. - Item
Media - Media slot for an
Itemrow (icon, avatar, thumbnail, etc.). - Kbd
- A styled keyboard key chip, mirroring shadcn’s
<kbd>. - KbdGroup
- Groups multiple
Kbdchips for shortcut combos (e.g. ⌘ + K). - Key
- KeyBinding
- KeyIcon
- Keybinding
Hint - Represents a hint for a keybinding, optionally with a prefix and suffix.
- Knockout
Icon Name Iter - An iterator over the variants of KnockoutIconName
- Label
- A struct representing a label element in the UI.
- Label
Like - A label-like element that can be used to create a custom label when prebuilt labels are not sufficient. Use this sparingly, as it is unconstrained and may make the UI feel less consistent.
- Layout
Table - Root wrapper for a static HTML-style table layout.
- Layout
Table Body - Table body section (
<tbody>). - Layout
Table Caption - Optional table caption shown above the bordered table.
- Layout
Table Cell - Body cell (
<td>). - Layout
Table Footer - Table footer section (
<tfoot>). - Layout
Table Head - Header cell (
<th>). - Layout
Table Header - Table header section (
<thead>). - Layout
Table Row - A single table row.
- Link
Preview - List
- List
Bullet Item - List
Header - List
Item - List
Separator - List
SubHeader - Loading
Label - Media
Object - A flex row pairing a media element (image/avatar) with a text block — Tailwind’s “Media Object” pattern.
- Menu
Handle Element State - Menubar
- A horizontal menubar with dropdown menus. Only one menu is open at a time; left/right arrow keys move between adjacent top-level menus while any menu is open.
- Modal
- Modal
Footer - Modal
Header - Modal
Row - Multi
Select - A multi-value select: a trigger showing selected values as dismissible
Chips plus aDropdownMenu-style checklist popover; toggling an option adds/removes itsChip. Stateful view — create withcx.new(|_| MultiSelect::new(options)). - Navbar
- A fixed top bar: leading content (title/logo) on the left, optional trailing actions on the right. Neutrals are theme-driven.
- Navigable
- An element that can be navigated through via keyboard. Intended for use with scrollable views that want to use
- Navigable
Entry - An entry of Navigable that can be navigated to.
- Navigation
Menu - Stateful navigation menu with hover-driven submenu viewport.
- Navigation
Menu Content - Content wrapper for a single submenu column inside the viewport.
- Navigation
Menu Item Def - Top-level navigation menu item definition.
- Navigation
Menu Link - A link-style item inside a navigation menu viewport.
- Navigation
Menu List - Root container for a horizontal navigation menu.
- Navigation
Menu Preview - Gallery catalog entry for
NavigationMenu. - Navigation
Menu SubItem - A single submenu entry shown inside a
NavigationMenuContentviewport. - Navigation
Menu Trigger - A navigation menu trigger button.
- Navigation
Menu Viewport - Viewport panel that displays the active submenu’s links.
- Page
Heading - A top-of-page heading: large bold title, optional muted subtitle, and a
right-aligned actions slot (e.g.
Buttons).mb_6,justify_between,items_centerper Tailwind’s Page Heading pattern. - Pagination
- Prev/next + numbered page navigation.
- Pane
- A single pane holding an ordered list of tabs, exactly one of which is
active. Renders its own [
TabBar]/[Tab] strip (with close “x” and add “+” affordances) above the active tab’s content. - Pane
Axis - A row (
Horizontal) or column (Vertical) ofNMembers, each sized by the parallelflexesfraction (sums to1.0). - Pane
Group - Stateful owner of a recursive pane split tree: which pane is active, how
new panes’ content is created, and (via its
Renderimpl) the split/close/focus keybinding wiring and active-pane highlight. - Pane
Group Preview - Gallery catalog entry for
PaneGroup: a two-pane horizontal split, each with one demo tab. - Parallel
Agents Illustration - Popover
- A popover is used to display a menu or show some options.
- Popover
Menu - Popover
Menu Element State - Popover
Menu Frame State - Popover
Menu Handle - Prepaint
State - Progress
Bar - A progress bar is a horizontal bar that communicates the status of a process.
- Radio
Button - A single radio button. Group exclusivity is the caller’s responsibility:
the parent holds the selected value and passes
checkedto each button. - Redistributable
Columns State - Render
Indent Guide Params - Parameters for rendering indent guides.
- Rendered
Indent Guide - Represents a rendered indent guide with its visual properties and interaction areas.
- Request
Layout State - Resizable
Columns State - State for independently resizable columns (spreadsheet-style).
- Resizable
Handle - Draggable divider between two
ResizablePanels: a wide invisible hit area (with the axis-appropriate resize cursor) centered on a thin visible line. - Resizable
Panel - A panel inside a
ResizablePanelGroup(or, viaSelf::axis, acrate::PaneGroupsplit). - Resizable
Panel Group - Horizontal panel group with a draggable split handle.
- Resizable
Preview - Gallery catalog entry for
ResizablePanelGroup. - Right
Click Menu - Scrollbar
Prepaint State - Scrollbars
- Search
Input - A search field:
TextInputwith a leadingMagnifyingGlassicon and a trailing clear (XMark) button shown once the input is non-empty. Stateful view — create withcx.new(|cx| SearchInput::new(cx, "Search…")). - Section
- Section
Header - Section
Heading - A mid-page section heading: bold title with optional grouped content
(e.g. a tab bar or filter row) below it.
mb_4per Tailwind’s Section Heading pattern. - Segmented
Control - A horizontal row of connected segments where exactly one is active.
Mirrors
RadioButton’s checked/on_click pattern, rendered as a single connected pill row (visual family of Phase 2’sButtonGroup). - Select
- A dropdown select: a trigger styled like a text field plus an expandable
option list. Stateful view — create with
cx.new(|_| Select::new(options)). - Sidebar
- A vertical navigation rail. Holds
SidebarItems (or any children). - Sidebar
Item - A single clickable navigation row inside a
Sidebar. - Skeleton
- A pulsing placeholder block shown while content is loading.
- Slider
- A single-value or range slider with pointer-drag on the track/thumb.
- Sonner
Stack - Sonner-style toast queue with auto-dismiss timers (newest appended last).
- Sonner
Stack Preview - Gallery catalog entry for
SonnerStack. - Sonner
Toast - A compact Sonner-style toast notification.
- Spinner
- A rotating loader icon for inline loading states.
- Spinner
Label - A spinner indication, based on the label component, that loops through
frames of the specified animation. It implements
LabelCommonas well. - Split
Button - /// A button with two parts: a primary action on the left and a secondary action on the right.
- Split
Down - Splits the active pane, inserting the new pane below it.
- Split
Left - Splits the active pane, inserting the new pane to its left.
- Split
Right - Splits the active pane, inserting the new pane to its right.
- SplitUp
- Splits the active pane, inserting the new pane above it.
- Stats
Card - A
Card-based metric tile: big number, label, and optional trend indicator. Callers compose multipleStatsCards into a grid. - Stepper
- A horizontal row of step circles connected by a line, for multi-step flows (e.g. checkout, onboarding wizards).
- Stepper
Step - A single step within a
Stepper. - Sticky
Items - Switch
- Switch
- Switch
Field - SwitchField
- Tab
- A single tab within a
TabBar. - TabBar
- TabId
- Stable identifier for a tab within one
Pane(unique per-Paneonly — au64counter is sufficient since reorder/close are always scoped to a singlePane, never compared across panes). - TabSwitcher
- A Cmd+Tab-style overlay: a plain list of open items (no search query),
navigated with ↑/↓ (or Tab/Shift-Tab to cycle) and confirmed with Enter.
Esc requests dismissal via
TabSwitcher::on_dismiss. - TabSwitcher
Item - A single entry rendered in a
TabSwitcher’s list. - Table
- A table component
- Table
Interaction State - Table
Render Context - Terminal
Panel - Chrome-only terminal panel: renders whatever text is set via
Self::set_output/Self::append_outputin a monospace block with a dark terminal-style background. There is NO real process behind this — no PTY, no shell spawn, no ANSI escape-sequence parsing. That is Phase C (plans/20260705-1722-zed-ui-component-enrichment/phase-03-*.md), which requiresalacritty_terminal+ platform PTY syscalls routed throughgpui_platformand is gated on the user accepting that dependency and the cross-platform risk it carries (see the plan’s Unresolved Questions). This exists purely so aPaneGrouplayout can be composed and reviewed before Phase C lands. - Terminal
View - A real terminal: spawns the user’s shell through a PTY
(
terminal::Terminal) and renders its live output with real per-cell ANSI colors/bold/italic/underline. This is the Phase C counterpart tocrate::TerminalPanel’s static chrome — seeplans/20260705-1722-zed- ui-component-enrichment/phase-03-real-terminal-pty-and-text-buffer.mdfor what this intentionally does NOT cover: mouse support, hyperlinks, scrollback UI (only the visible screen is rendered, no history buffer), vi-mode, bracketed paste, and any verification on Linux/Windows (this was built and tested on macOS only). - Text
Input - A focusable single-line (or multi-line) text field backed by a real
Stringbuffer. Keyboard input is handled via key events (key_char+ editing keys), so typed characters genuinely appear and backspace deletes. - Thread
Item - Thread
Item Worktree Info - Title
Bar - Chrome-only window title bar: a centered title plus three macOS-style
traffic-light buttons (close/minimize/maximize). Renders no real window
controls — callers supply
on_close/on_minimize/on_maximize, which is the caller’s (crates/app, via thegpui_platformfacade) job, not this crate’s. Platform-agnostic: this crate never calls Cocoa/Win32 APIs directly (seedocs/code-standards.md§ Platform-Specific Code). - Toast
Stack - A bottom-right stacking container for
crate::AnnouncementToastinstances. - Toggle
Button Group - Toggle
Button Position - The position of a [
ToggleButton] within a group of buttons. - Toggle
Button Simple - Toggle
Button With Icon - Toggle
Group - A connected row of toggle buttons supporting single or multiple selection.
- Toggle
Group Item - Configuration for one segment in a
ToggleGroup. - Tooltip
- Tree
View Item - Update
Button - A button component displayed in the title bar to show auto-update status.
- Vector
- A vector image, such as an SVG.
- Vector
Name Iter - An iterator over the variants of VectorName
- Vertical
Nav - A flat list of navigation links for in-page sub-navigation (e.g. a settings page’s left-hand link list).
- Vertical
NavItem - A single clickable link within a
VerticalNav.
Enums§
- Agent
Thread Status - AiSetting
Item Source - AiSetting
Item Status - AnyIcon
- Audio
Status - The audio status of an player, for use in representing their status visually on their avatar.
- Badge
Color - Semantic color role of a
Badge. - Badge
Variant - Fill style of a
Badge. - Border
Position - Button
Size - The height of a button.
- Button
Size Alias - shadcn/ui button sizes (additive alias over
ButtonSize). - Button
Style - The visual appearance of a button.
- Button
Variant - shadcn/ui button variants (additive alias over
ButtonStyle). - Card
Variant - Visual style of a
Card. - Chart
Kind - Basic chart kinds supported by this module.
- Collaborator
Availability - Represents the availability status of a collaborator.
- Color
- Sets a color that has a consistent meaning across all themes.
- Column
Width Config - Command
Item - A command-palette item: either a non-selectable group label or a selectable entry.
- Context
Menu Item - Description
List Mode - Layout mode of a
DescriptionListrow. - Divider
Color - The color of a
Divider. - Documentation
Side - Dropdown
Style - Dynamic
Spacing - A dynamic spacing system that adjusts spacing based on UiDensity.
- Elevation
Index - Today, elevation is primarily used to add shadows to elements, and set the correct background for elements like buttons.
- Empty
Message - Headline
Size - The size of a
Headlineelement - Icon
Button Shape - The shape of an
IconButton. - Icon
Decoration Kind - Icon
Name - Icon
Position - Icon
Size - Input
Validation State - Visual validation state of a
TextInput, reflected in its border/focus ring color. - Keybinding
Position - Knockout
Icon Name - An icon silhouette used to knockout the background of an element for an icon to sit on top of it, emulating a stroke/border.
- Label
Size - Sets the size of a label
- Line
Height Style - Sets the line height of a label
- List
Item Spacing - Member
- A node in
PaneGroup’s recursive split tree: either a leaf pane or a nested split along someAxis. - Pane
Event - Events emitted by
Paneforcrate::PaneGroupto react to. - Platform
Style - The platform style to use when rendering UI.
- Scroll
Axes - Scrollbar
Style - Severity
- Severity levels that determine the style of the component. Usually, it affects the background. Most of the time, it also follows with an icon corresponding the severity level.
- Shadow
- Named elevation levels. Values mirror the Tailwind box-shadow scale.
- Sheet
Side - Which edge of the container a
Drawer(shadcn Sheet) anchors to. - Sonner
Toast Variant - Sonner-style toast variant.
- Sort
Direction - Sort direction shown by a
Tablesortable column header indicator. - Spinner
Size - Size preset for a
Spinner. - Spinner
Variant - Different types of spinner animations
- Split
Button Kind - Split
Button Style - Split
Direction - Direction a new pane is inserted relative to the currently active pane.
- Static
Column Widths - Stats
Trend - Direction of a
StatsCardtrend indicator. - Switch
Color - Defines the color for a switch component.
- Switch
Label Position - Defines the color for a switch component.
- TabBar
Style - Visual style for
TabBarand its childTabs. - Table
Resize Behavior - Text
Size - A utility for getting the size of various semantic text sizes.
- Tint
Color - Toggle
Button Group Size - Toggle
Button Group Style - Toggle
Group Mode - Selection mode for a
ToggleGroup. - Toggle
Style - The visual style of a toggle.
- Vector
Name - Worktree
Kind
Constants§
- BASE_
REM_ SIZE_ IN_ PX - The base size of a rem, in pixels.
- COMMAND_
PALETTE_ WIDTH - Default panel width for a
CommandPaletteoverlay. - DRAWER_
HEIGHT - Default height for top/bottom
Drawersheets (Tailwindh-96~= 384px). - DRAWER_
WIDTH - Default width for a
Drawer(Tailwindw-96~= 384px). - EDITOR_
SCROLLBAR_ WIDTH - EXAMPLE_
FACES - POPOVER_
Y_ PADDING - Y height added beyond the size of the contents.
- RADIUS_
FULL - Full pill — shadcn badges/chips. GPUI:
.rounded_full(). - RADIUS_
LG - shadcn
--radius-lg/ base--radius(10px). GPUI:.rounded_xl()— no exact 10px step exists; this is the nearest larger one (12px). - RADIUS_
MD - shadcn
--radius-md(8px). GPUI:.rounded_lg()— exact match (8px). - RADIUS_
SM - shadcn
--radius-sm(6px). GPUI:.rounded_md()— exact match (6px). - RADIUS_
XL - shadcn
--radius-xl(14px). GPUI:.rounded_2xl()— no exact 14px step exists; this is the nearest larger one (16px), kept distinct fromRADIUS_LGso the two shadcn steps don’t collide on one GPUI builder. - SONNER_
DEFAULT_ DISMISS - Default auto-dismiss duration for
SonnerStacktoasts. - TAB_
SWITCHER_ WIDTH - Default panel width for a
TabSwitcheroverlay. - TOAST_
STACK_ MAX_ VISIBLE - Default cap on simultaneously visible toasts (Tailwind reference spec: max 3 visible).
Traits§
- Button
Builder - Button
Common - A common set of traits all buttons must implement.
- Common
Animation Ext - An extension trait for adding common animations to animatable components.
- Label
Common - A common set of traits all labels must implement.
- Popover
Trigger - Scrollable
Handle - Selectable
Button - A trait for buttons that can be Selected. Enables setting the
ButtonStyleof a button when it is selected. - Sticky
Candidate - Sticky
Items Decoration - A decoration for a
StickyItems. This can be used for various things, such as rendering indent guides, or other visual effects. - Styled
Shadow - Extends
gpui::Styledwith a named shadow scale. - Styled
Typography - Extends
gpui::Styledwith typography-related styling methods. - TabContent
- Content rendered inside a single tab of a
Pane. - With
Scrollbar
Functions§
- bind_
redistributable_ columns - chart_
colors - Default chart color roles mapped from the design-system palette.
- checkbox
- Creates a new checkbox.
- code_
editor_ preview - Standalone gallery preview for
CodeEditor(not registered in theComponentcatalog since it is a statefulEntity, matchingSearchInput’s existing convention in this crate). Shows both modes: an editable plain-text buffer, and a read-only buffer with real tree-sitter syntax highlighting (seeCodeEditor::language). - combobox_
preview - Standalone gallery preview for
Combobox(not registered in theComponentcatalog since it is a statefulEntity, matchingSelect’s existing convention in this crate). - command_
preview - Standalone gallery preview for
Command(statefulEntity). - divider
- h_flex
- Horizontally stacks elements. Sets
flex(),flex_row(),items_center() - h_group
- Creates a horizontal group with consistent spacing.
- h_
group_ lg - Creates a horizontal group with consistent spacing.
- h_
group_ sm - Creates a horizontal group with tight, consistent spacing.
- h_
group_ xl - Creates a horizontal group with consistent spacing.
- highlight_
ranges - indent_
guides - multi_
select_ preview - Standalone gallery preview for
MultiSelect(not registered in theComponentcatalog since it is a statefulEntity, matchingSelect’s existing convention in this crate). - on_
new_ scrollbars - register_
pane_ keybindings - Installs
boltz-ui’s defaultPaneGroupkeybindings, scoped to the"PaneGroup"key context thatcrate::PaneGroup’sRenderimpl sets on its root element: - rems_
from_ px - Returns a rem value derived from the provided pixel value and the base rem size (16px).
- render_
keybinding_ keystroke - render_
modifiers - render_
redistributable_ columns_ resize_ handles - render_
table_ header - render_
table_ row - right_
click_ menu - Creates a
RightClickMenu - score
- Scores
candidateagainstquery, case-insensitively. ReturnsNoneifqueryis not a (possibly non-contiguous, in-order) subsequence ofcandidate— i.e. no match at all. Higher scores rank better; an emptyquerymatches everything with score0(unfiltered default state). - search_
input_ preview - Standalone gallery preview for
SearchInput(not registered in theComponentcatalog since it is a statefulEntity, matchingSelect’s existing convention in this crate). - sticky_
items - switch
- Creates a new switch.
- tab_
switcher_ preview - Standalone gallery preview for
TabSwitcher(not registered in theComponentcatalog since it is a statefulEntity, matchingCodeEditor/SearchInput’s existing convention in this crate). - terminal_
panel_ preview - Standalone gallery preview for
TerminalPanel(not registered in theComponentcatalog since it is a statefulEntity, matchingCodeEditor/SearchInput’s existing convention in this crate). - terminal_
view_ preview - Standalone gallery preview for
TerminalView(not registered in theComponentcatalog since it is a statefulEntitythat spawns a real process, matchingCodeEditor/TabSwitcher’s existing convention in this crate — but unlike those, mounting this in a gallery genuinely spawns a real shell child process for as long as the entity is alive). - text_
for_ action - Returns a textual representation of the key binding for the given
Action. - text_
for_ keybinding_ keystrokes - text_
for_ keystroke - text_
for_ keystrokes - theme_
is_ transparent - Returns if the window and it’s surfaces are expected to be transparent.
- tooltip_
container - ui_
density - Returns the current
UiDensitysetting. Use this to modify or show something in the UI other than spacing. - v_flex
- Vertically stacks elements. Sets
flex(),flex_col() - v_group
- Creates a vertical group with consistent spacing.
- v_
group_ lg - Creates a vertical group with consistent spacing.
- v_
group_ sm - Creates a vertical group with tight, consistent spacing.
- v_
group_ xl - Creates a vertical group with consistent spacing.
- vertical_
divider - vh
- Returns a
Lengthcorresponding to the specified percentage of the viewport’s height. - vw
- Returns a
Lengthcorresponding to the specified percentage of the viewport’s width.
Type Aliases§
- Textarea
- A multi-line text field. Construct with
cx.new(|cx| Textarea::new(cx).multiline(true)). - Unchecked
Table Row - Represents an unchecked table row, which is a vector of elements.
Will be converted into
TableRow<T>internally