Skip to main content

Crate ui

Crate ui 

Source
Expand description

§UI – App UI Primitives & Components

This crate provides a set of UI primitives and components that are used to build all of the elements in the app’s UI.

  • ui_macros - proc_macros support for this crate
  • ui_input - the single line input component

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 --radius scale 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§

ActionPanel
A bordered, semantic::elevated_surface-backed section with a fieldset area (arbitrary child fields, e.g. FormFields) followed by a border-t footer with right-aligned Save/Cancel Buttons.
AgentSetupButton
AiSettingItem
A reusable setting item row for AI-related configuration lists.
Alert
A tinted, icon-led message box for one of four severities.
AlertDialog
A thin preset on Modal with Action/Cancel footer slots.
AlertModal
AnnouncementToast
AppShell
Composes an already-styled Navbar (top) and Sidebar (left) around a main content slot. Pure composition — no new styling logic; Navbar and Sidebar own all of their own visuals (colors/borders/width).
AspectRatio
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.
AvatarAudioStatusIndicator
An indicator that shows the audio status of a player.
AvatarAvailabilityIndicator
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.
BreadcrumbItem
A single crumb within a Breadcrumb trail.
Button
An element that creates a button with a label and optional icons.
ButtonConfiguration
ButtonGroup
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).
ButtonLike
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.
ButtonLink
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.
CalendarPreview
Gallery catalog entry for Calendar.
Callout
A callout component for displaying important information that requires user attention.
CannotRemoveLastPane
Returned by PaneGroup::close_active when the active pane is the only leaf left in the tree — a PaneGroup always 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.
CarouselPreview
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.
CircularProgress
A circular progress indicator that displays progress as an arc growing clockwise from the top.
ClosePane
Closes the active pane (no-op if it is the only pane left).
CodeEditor
A multi-line code area with a line-number gutter, composed from a multiline TextInput. Real tree-sitter syntax highlighting is available via Self::language, but only while Self::read_only is set — see that method’s doc comment for why live-typing highlighting is a separately-scoped effort.
CollabNotification
Combobox
A typeahead-filtered select: a TextInput (typed filter) plus a DropdownMenu-style popover list of options filtered by case-insensitive substring match by default, or optional subsequence fuzzy filter via Combobox::fuzzy_filter. Selecting an option sets the input’s display text via TextInput::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).
CommandPalette
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 via CommandPalette::on_dismiss.
CommandPaletteItem
A single entry rendered in a CommandPalette’s results list.
ConfiguredApiCard
Container
A fixed max-width centering wrapper, matching Tailwind’s .container pattern.
ContextMenu
ContextMenuEntry
CopyButton
CountBadge
A small, pill-shaped badge that displays a numeric count.
DatePicker
Popover date picker: trigger button + floating Calendar.
DatePickerPreview
Gallery catalog entry for DatePicker.
DecoratedIcon
DescriptionList
A key-value list for displaying structured details (Tailwind “Description List”).
DiffStat
Disclosure
Divider
DocumentationAside
Drawer
A side panel (“slide-over”) anchored to the right edge of its container.
DropdownMenu
EmptyState
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”).
FileInput
A styled file-upload trigger: dashed semantic::border, an icon, and a “Click to upload” label.
FocusDown
Moves the active pane to its neighbor below, if any.
FocusLeft
Moves the active pane to its left neighbor, if any.
FocusRight
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.
FormField
A label + input + help/error/success/warning wrapper for form layouts.
GradientFade
A gradient overlay that fades from a solid color to transparent.
HeaderResizeInfo
Headline
A headline element, used to emphasize some text and create a visual hierarchy.
HighlightedLabel
HoverCard
Rich content shown on hover with delay, composing tooltip hover timing and Popover content styling.
Icon
IconButton
IconDecoration
The decoration for an icon.
IconDecorationKindIter
An iterator over the variants of IconDecorationKind
IconNameIter
An iterator over the variants of IconName
IconWithIndicator
IndentGuideColors
Represents the colors used for different states of indent guides.
IndentGuideLayout
Represents the layout information for an indent guide.
IndentGuides
Indicator
InputGroup
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.
InputOtp
Fixed-length OTP input with per-slot focus navigation and paste-split.
Item
A generic row primitive with media, content, and trailing actions slots.
ItemActions
Trailing actions slot for an Item row.
ItemContent
Primary text block for an Item row.
ItemMedia
Media slot for an Item row (icon, avatar, thumbnail, etc.).
Kbd
A styled keyboard key chip, mirroring shadcn’s <kbd>.
KbdGroup
Groups multiple Kbd chips for shortcut combos (e.g. ⌘ + K).
Key
KeyBinding
KeyIcon
KeybindingHint
Represents a hint for a keybinding, optionally with a prefix and suffix.
KnockoutIconNameIter
An iterator over the variants of KnockoutIconName
Label
A struct representing a label element in the UI.
LabelLike
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.
LayoutTable
Root wrapper for a static HTML-style table layout.
LayoutTableBody
Table body section (<tbody>).
LayoutTableCaption
Optional table caption shown above the bordered table.
LayoutTableCell
Body cell (<td>).
LayoutTableFooter
Table footer section (<tfoot>).
LayoutTableHead
Header cell (<th>).
LayoutTableHeader
Table header section (<thead>).
LayoutTableRow
A single table row.
LinkPreview
List
ListBulletItem
ListHeader
ListItem
ListSeparator
ListSubHeader
LoadingLabel
MediaObject
A flex row pairing a media element (image/avatar) with a text block — Tailwind’s “Media Object” pattern.
MenuHandleElementState
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
ModalFooter
ModalHeader
ModalRow
MultiSelect
A multi-value select: a trigger showing selected values as dismissible Chips plus a DropdownMenu-style checklist popover; toggling an option adds/removes its Chip. Stateful view — create with cx.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
NavigableEntry
An entry of Navigable that can be navigated to.
NavigationMenu
Stateful navigation menu with hover-driven submenu viewport.
NavigationMenuContent
Content wrapper for a single submenu column inside the viewport.
NavigationMenuItemDef
Top-level navigation menu item definition.
NavigationMenuLink
A link-style item inside a navigation menu viewport.
NavigationMenuList
Root container for a horizontal navigation menu.
NavigationMenuPreview
Gallery catalog entry for NavigationMenu.
NavigationMenuSubItem
A single submenu entry shown inside a NavigationMenuContent viewport.
NavigationMenuTrigger
A navigation menu trigger button.
NavigationMenuViewport
Viewport panel that displays the active submenu’s links.
PageHeading
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_center per 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.
PaneAxis
A row (Horizontal) or column (Vertical) of N Members, each sized by the parallel flexes fraction (sums to 1.0).
PaneGroup
Stateful owner of a recursive pane split tree: which pane is active, how new panes’ content is created, and (via its Render impl) the split/close/focus keybinding wiring and active-pane highlight.
PaneGroupPreview
Gallery catalog entry for PaneGroup: a two-pane horizontal split, each with one demo tab.
ParallelAgentsIllustration
Popover
A popover is used to display a menu or show some options.
PopoverMenu
PopoverMenuElementState
PopoverMenuFrameState
PopoverMenuHandle
PrepaintState
ProgressBar
A progress bar is a horizontal bar that communicates the status of a process.
RadioButton
A single radio button. Group exclusivity is the caller’s responsibility: the parent holds the selected value and passes checked to each button.
RedistributableColumnsState
RenderIndentGuideParams
Parameters for rendering indent guides.
RenderedIndentGuide
Represents a rendered indent guide with its visual properties and interaction areas.
RequestLayoutState
ResizableColumnsState
State for independently resizable columns (spreadsheet-style).
ResizableHandle
Draggable divider between two ResizablePanels: a wide invisible hit area (with the axis-appropriate resize cursor) centered on a thin visible line.
ResizablePanel
A panel inside a ResizablePanelGroup (or, via Self::axis, a crate::PaneGroup split).
ResizablePanelGroup
Horizontal panel group with a draggable split handle.
ResizablePreview
Gallery catalog entry for ResizablePanelGroup.
RightClickMenu
ScrollbarPrepaintState
Scrollbars
SearchInput
A search field: TextInput with a leading MagnifyingGlass icon and a trailing clear (XMark) button shown once the input is non-empty. Stateful view — create with cx.new(|cx| SearchInput::new(cx, "Search…")).
Section
SectionHeader
SectionHeading
A mid-page section heading: bold title with optional grouped content (e.g. a tab bar or filter row) below it. mb_4 per Tailwind’s Section Heading pattern.
SegmentedControl
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’s ButtonGroup).
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).
SidebarItem
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.
SonnerStack
Sonner-style toast queue with auto-dismiss timers (newest appended last).
SonnerStackPreview
Gallery catalog entry for SonnerStack.
SonnerToast
A compact Sonner-style toast notification.
Spinner
A rotating loader icon for inline loading states.
SpinnerLabel
A spinner indication, based on the label component, that loops through frames of the specified animation. It implements LabelCommon as well.
SplitButton
/// A button with two parts: a primary action on the left and a secondary action on the right.
SplitDown
Splits the active pane, inserting the new pane below it.
SplitLeft
Splits the active pane, inserting the new pane to its left.
SplitRight
Splits the active pane, inserting the new pane to its right.
SplitUp
Splits the active pane, inserting the new pane above it.
StatsCard
A Card-based metric tile: big number, label, and optional trend indicator. Callers compose multiple StatsCards into a grid.
Stepper
A horizontal row of step circles connected by a line, for multi-step flows (e.g. checkout, onboarding wizards).
StepperStep
A single step within a Stepper.
StickyItems
Switch
Switch
SwitchField
SwitchField
Tab
A single tab within a TabBar.
TabBar
TabId
Stable identifier for a tab within one Pane (unique per-Pane only — a u64 counter is sufficient since reorder/close are always scoped to a single Pane, 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.
TabSwitcherItem
A single entry rendered in a TabSwitcher’s list.
Table
A table component
TableInteractionState
TableRenderContext
TerminalPanel
Chrome-only terminal panel: renders whatever text is set via Self::set_output/Self::append_output in 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 requires alacritty_terminal + platform PTY syscalls routed through gpui_platform and 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 a PaneGroup layout can be composed and reviewed before Phase C lands.
TerminalView
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 to crate::TerminalPanel’s static chrome — see plans/20260705-1722-zed- ui-component-enrichment/phase-03-real-terminal-pty-and-text-buffer.md for 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).
TextInput
A focusable single-line (or multi-line) text field backed by a real String buffer. Keyboard input is handled via key events (key_char + editing keys), so typed characters genuinely appear and backspace deletes.
ThreadItem
ThreadItemWorktreeInfo
TitleBar
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 the gpui_platform facade) job, not this crate’s. Platform-agnostic: this crate never calls Cocoa/Win32 APIs directly (see docs/code-standards.md § Platform-Specific Code).
ToastStack
A bottom-right stacking container for crate::AnnouncementToast instances.
ToggleButtonGroup
ToggleButtonPosition
The position of a [ToggleButton] within a group of buttons.
ToggleButtonSimple
ToggleButtonWithIcon
ToggleGroup
A connected row of toggle buttons supporting single or multiple selection.
ToggleGroupItem
Configuration for one segment in a ToggleGroup.
Tooltip
TreeViewItem
UpdateButton
A button component displayed in the title bar to show auto-update status.
Vector
A vector image, such as an SVG.
VectorNameIter
An iterator over the variants of VectorName
VerticalNav
A flat list of navigation links for in-page sub-navigation (e.g. a settings page’s left-hand link list).
VerticalNavItem
A single clickable link within a VerticalNav.

Enums§

AgentThreadStatus
AiSettingItemSource
AiSettingItemStatus
AnyIcon
AudioStatus
The audio status of an player, for use in representing their status visually on their avatar.
BadgeColor
Semantic color role of a Badge.
BadgeVariant
Fill style of a Badge.
BorderPosition
ButtonSize
The height of a button.
ButtonSizeAlias
shadcn/ui button sizes (additive alias over ButtonSize).
ButtonStyle
The visual appearance of a button.
ButtonVariant
shadcn/ui button variants (additive alias over ButtonStyle).
CardVariant
Visual style of a Card.
ChartKind
Basic chart kinds supported by this module.
CollaboratorAvailability
Represents the availability status of a collaborator.
Color
Sets a color that has a consistent meaning across all themes.
ColumnWidthConfig
CommandItem
A command-palette item: either a non-selectable group label or a selectable entry.
ContextMenuItem
DescriptionListMode
Layout mode of a DescriptionList row.
DividerColor
The color of a Divider.
DocumentationSide
DropdownStyle
DynamicSpacing
A dynamic spacing system that adjusts spacing based on UiDensity.
ElevationIndex
Today, elevation is primarily used to add shadows to elements, and set the correct background for elements like buttons.
EmptyMessage
HeadlineSize
The size of a Headline element
IconButtonShape
The shape of an IconButton.
IconDecorationKind
IconName
IconPosition
IconSize
InputValidationState
Visual validation state of a TextInput, reflected in its border/focus ring color.
KeybindingPosition
KnockoutIconName
An icon silhouette used to knockout the background of an element for an icon to sit on top of it, emulating a stroke/border.
LabelSize
Sets the size of a label
LineHeightStyle
Sets the line height of a label
ListItemSpacing
Member
A node in PaneGroup’s recursive split tree: either a leaf pane or a nested split along some Axis.
PaneEvent
Events emitted by Pane for crate::PaneGroup to react to.
PlatformStyle
The platform style to use when rendering UI.
ScrollAxes
ScrollbarStyle
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.
SheetSide
Which edge of the container a Drawer (shadcn Sheet) anchors to.
SonnerToastVariant
Sonner-style toast variant.
SortDirection
Sort direction shown by a Table sortable column header indicator.
SpinnerSize
Size preset for a Spinner.
SpinnerVariant
Different types of spinner animations
SplitButtonKind
SplitButtonStyle
SplitDirection
Direction a new pane is inserted relative to the currently active pane.
StaticColumnWidths
StatsTrend
Direction of a StatsCard trend indicator.
SwitchColor
Defines the color for a switch component.
SwitchLabelPosition
Defines the color for a switch component.
TabBarStyle
Visual style for TabBar and its child Tabs.
TabCloseSide
Which side of a Tab’s content the close button (or other end-slot element) sits on, relative to the fixed-size start/end slots.
TabPosition
The position of a Tab within a TabBar’s row, used to decide which edges get a border in the TabBarStyle::Underline style (ported from Zed’s tab.rs).
TableResizeBehavior
TextSize
A utility for getting the size of various semantic text sizes.
TintColor
ToggleButtonGroupSize
ToggleButtonGroupStyle
ToggleGroupMode
Selection mode for a ToggleGroup.
ToggleStyle
The visual style of a toggle.
VectorName
WorktreeKind

Constants§

BASE_REM_SIZE_IN_PX
The base size of a rem, in pixels.
COMMAND_PALETTE_WIDTH
Default panel width for a CommandPalette overlay.
DRAWER_HEIGHT
Default height for top/bottom Drawer sheets (Tailwind h-96 ~= 384px).
DRAWER_WIDTH
Default width for a Drawer (Tailwind w-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 from RADIUS_LG so the two shadcn steps don’t collide on one GPUI builder.
SONNER_DEFAULT_DISMISS
Default auto-dismiss duration for SonnerStack toasts.
TAB_SWITCHER_WIDTH
Default panel width for a TabSwitcher overlay.
TOAST_STACK_MAX_VISIBLE
Default cap on simultaneously visible toasts (Tailwind reference spec: max 3 visible).

Traits§

ButtonBuilder
ButtonCommon
A common set of traits all buttons must implement.
CommonAnimationExt
An extension trait for adding common animations to animatable components.
LabelCommon
A common set of traits all labels must implement.
PopoverTrigger
ScrollableHandle
SelectableButton
A trait for buttons that can be Selected. Enables setting the ButtonStyle of a button when it is selected.
StickyCandidate
StickyItemsDecoration
A decoration for a StickyItems. This can be used for various things, such as rendering indent guides, or other visual effects.
StyledShadow
Extends gpui::Styled with a named shadow scale.
StyledTypography
Extends gpui::Styled with typography-related styling methods.
TabContent
Content rendered inside a single tab of a Pane.
WithScrollbar

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 the Component catalog since it is a stateful Entity, matching SearchInput’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 (see CodeEditor::language).
combobox_preview
Standalone gallery preview for Combobox (not registered in the Component catalog since it is a stateful Entity, matching Select’s existing convention in this crate).
command_preview
Standalone gallery preview for Command (stateful Entity).
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 the Component catalog since it is a stateful Entity, matching Select’s existing convention in this crate).
on_new_scrollbars
register_pane_keybindings
Installs boltz-ui’s default PaneGroup keybindings, scoped to the "PaneGroup" key context that crate::PaneGroup’s Render impl 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 candidate against query, case-insensitively. Returns None if query is not a (possibly non-contiguous, in-order) subsequence of candidate — i.e. no match at all. Higher scores rank better; an empty query matches everything with score 0 (unfiltered default state).
search_input_preview
Standalone gallery preview for SearchInput (not registered in the Component catalog since it is a stateful Entity, matching Select’s existing convention in this crate).
sticky_items
switch
Creates a new switch.
tab_switcher_preview
Standalone gallery preview for TabSwitcher (not registered in the Component catalog since it is a stateful Entity, matching CodeEditor/SearchInput’s existing convention in this crate).
terminal_panel_preview
Standalone gallery preview for TerminalPanel (not registered in the Component catalog since it is a stateful Entity, matching CodeEditor/SearchInput’s existing convention in this crate).
terminal_view_preview
Standalone gallery preview for TerminalView (not registered in the Component catalog since it is a stateful Entity that spawns a real process, matching CodeEditor/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 UiDensity setting. 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 Length corresponding to the specified percentage of the viewport’s height.
vw
Returns a Length corresponding 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)).
UncheckedTableRow
Represents an unchecked table row, which is a vector of elements. Will be converted into TableRow<T> internally