Widgets#
Every visual component you place inside a window — actions, inputs, selection
controls, data displays, layout containers, and navigation. All are importable
directly as bootstack.<name> (commonly import bootstack as bs). For
usage, screenshots, and worked examples, see the Widgets catalog;
this page is the complete lookup reference.
Actions#
Buttons and button groups for triggering commands.
A clickable action trigger. |
|
A row (or column) of visually-connected buttons sharing accent and variant. |
Inputs#
Text, number, path, date/time, and slider inputs. Most bind to a signal= /
textsignal= and support validation rules=.
A full-featured code editor with line numbers, bracket matching, and syntax highlighting. |
|
A date input field with an optional calendar picker button. |
|
A numeric input field with optional stepper buttons. |
|
A masked text field for password input with an optional visibility toggle. |
|
A text field with a browse button that opens a native file/directory dialog. |
|
A two-handle slider for selecting a low/high value range. |
|
A single-handle slider for selecting a numeric value within a range. |
|
A text-entry field with spin buttons for stepping through values. |
|
A multi-line text input with optional label, placeholder, and scrollbars. |
|
Single-line text input with optional label, message, and validation. |
|
A time-input field with a searchable dropdown of time intervals. |
Selection#
Checkboxes, switches, radio and toggle groups, dropdowns, and the calendar.
RadioGroup is built from Radio / RadioToggleButton items.
An inline calendar for single-date or date-range selection. |
|
A labeled checkbox — checked or unchecked. |
|
A single radio button — one selectable option in a mutually-exclusive group. |
|
A group of mutually exclusive radio buttons. |
|
A radio button that renders as a toggle button — toolbar/segmented-control style. |
|
A single-selection dropdown field. |
|
A button that opens a dropdown value list — a button-styled alternative to |
|
A toggle switch — on or off. |
|
A button that stays pressed when active — toolbar-style toggle. |
|
A group of toggle buttons — single-select or multi-select. |
Data display#
Read-only views of values and records — text and badges, progress and gauges,
and the list, table, and tree views for collections. ListView, DataTable,
and Tree bind to a data_source=; Tree exposes its rows as TreeNode
handles.
Compact styled chip for status indicators, counts, and tags. |
|
A feature-rich data table with sorting, filtering, search, and grouping. |
|
A circular gauge for displaying a value within a range. |
|
Static text display with optional icon, semantic styling, and font tokens. |
|
A virtual-scrolling list for efficiently displaying large datasets. |
|
A progress indicator bar. |
|
A hierarchical tree for navigation and selection. |
|
A single node in a |
Media#
Image and media display. Picture shows an Image
scaled to fit, with fit modes, rounded corners, and animated-GIF playback; Gallery
is a record-native, recycling grid of selectable thumbnails; Carousel steps through
image slides one at a time with transitions and autoplay; Avatar is a small identity
badge showing a picture or initials.
Layout#
Containers that arrange children — stacks, grids, and scroll regions, plus the
framed and collapsible groupings. Accordion exposes its sections as
AccordionSection handles and SplitView its panes as SplitPane handles.
A list of collapsible sections, optionally limited to one open at a time. |
|
A handle for one accordion section — both a layout context and a live controller. |
|
A card-surface container that groups content with an elevated background and border. |
|
A container that arranges children in rows and columns. |
|
A labeled container that groups related content inside a bordered frame. |
|
Horizontal stack — lays out children left-to-right with optional gap and alignment. |
|
A canvas-based scrollable container. |
|
A horizontal or vertical dividing line. |
|
A handle for one split pane — both a layout context and a live controller. |
|
A resizable split container with panes separated by draggable sashes. |
|
Vertical stack — lays out children top-to-bottom with optional gap and alignment. |
Overlays#
Transient, floating UI — hover tooltips and the three message surfaces (passive toast, persistent notification, and in-app snackbar).
A persistent corner message the user closes themselves. |
|
A transient message at the app window's bottom edge with one action. |
|
A hover tooltip attached to a target widget. |
|
Show a snackbar at the window's bottom edge, and return immediately. |
|
Show a passive toast that dismisses itself, and return immediately. |
Forms#
A declarative form builder and the item types that describe its layout — fields, groups, and tabbed sections.
A single field in a |
|
Data-entry form built from data or explicit field definitions. |
|
Represent a PEP 604 union type |
|
A labeled group of fields with its own column layout, placed in a |
|
A single tab within a |
|
A tab container holding one or more |
A list of collapsible sections, optionally limited to one open at a time. |
|
A handle for one accordion section — both a layout context and a live controller. |
|
A small identity badge — a picture or initials on a filled tile. |
|
Compact styled chip for status indicators, counts, and tags. |
|
A clickable action trigger. |
|
A row (or column) of visually-connected buttons sharing accent and variant. |
|
An inline calendar for single-date or date-range selection. |
|
A card-surface container that groups content with an elevated background and border. |
|
Shows one image slide at a time, with prev/next navigation. |
|
A labeled checkbox — checked or unchecked. |
|
A full-featured code editor with line numbers, bracket matching, and syntax highlighting. |
|
A horizontal strip of buttons, labels, and other widgets. |
|
A popup menu that attaches to a target widget and opens on a gesture or manual call. |
|
Data class for context menu items. |
|
A feature-rich data table with sorting, filtering, search, and grouping. |
|
A date input field with an optional calendar picker button. |
|
A single field in a |
|
Data-entry form built from data or explicit field definitions. |
|
Represent a PEP 604 union type |
|
A scrollable, selectable grid of image thumbnails. |
|
A circular gauge for displaying a value within a range. |
|
A container that arranges children in rows and columns. |
|
A labeled container that groups related content inside a bordered frame. |
|
A labeled group of fields with its own column layout, placed in a |
|
Horizontal stack — lays out children left-to-right with optional gap and alignment. |
|
Static text display with optional icon, semantic styling, and font tokens. |
|
A virtual-scrolling list for efficiently displaying large datasets. |
|
A button that opens a dropdown menu when clicked. |
|
A persistent corner message the user closes themselves. |
|
A numeric input field with optional stepper buttons. |
|
A browser-style navigation container showing one page at a time. |
|
A masked text field for password input with an optional visibility toggle. |
|
A text field with a browse button that opens a native file/directory dialog. |
|
Displays an image, scaled to fit, with optional animation. |
|
A progress indicator bar. |
|
A single radio button — one selectable option in a mutually-exclusive group. |
|
A group of mutually exclusive radio buttons. |
|
A radio button that renders as a toggle button — toolbar/segmented-control style. |
|
A two-handle slider for selecting a low/high value range. |
|
A canvas-based scrollable container. |
|
A single-selection dropdown field. |
|
A button that opens a dropdown value list — a button-styled alternative to |
|
A horizontal or vertical dividing line. |
|
A single-handle slider for selecting a numeric value within a range. |
|
A transient message at the app window's bottom edge with one action. |
|
Show a snackbar at the window's bottom edge, and return immediately. |
|
A text-entry field with spin buttons for stepping through values. |
|
A handle for one split pane — both a layout context and a live controller. |
|
A resizable split container with panes separated by draggable sashes. |
|
A handle for one page — both a layout context and a navigation target. |
|
A horizontal status band of passive segments — counts, sync state, a ready message. |
|
A toggle switch — on or off. |
|
A single tab within a |
|
A handle for one tab — both a layout context and a live controller. |
|
A tabbed container. |
|
A tab container holding one or more |
|
A multi-line text input with optional label, placeholder, and scrollbars. |
|
Single-line text input with optional label, message, and validation. |
|
A time-input field with a searchable dropdown of time intervals. |
|
Show a passive toast that dismisses itself, and return immediately. |
|
A button that stays pressed when active — toolbar-style toggle. |
|
A group of toggle buttons — single-select or multi-select. |
|
A hover tooltip attached to a target widget. |
|
A hierarchical tree for navigation and selection. |
|
A single node in a |
|
Vertical stack — lays out children top-to-bottom with optional gap and alignment. |