ProtectedcomponentsProtectedelementProtectedisProtectedisAdd arbitrary HTML or an HTMLElement to the bar.
HTML string or HTMLElement
Add a title (non-interactive text) to the bar. Inherits bar foreground/background colors.
Title text
Optionaloptions: Partial<CSSStyleDeclaration>Optional style overrides
Remove all components from the bar
Disable the component
Enable the component
Get all components in the bar
Get the underlying DOM element
Check if the component is enabled
Check if the component is visible
Hide the component
Set alignment of items within the bar.
Justify content value (CSS flexbox)
Set foreground and background colors for the bar using CSS variables.
Text color
Background color
Show the component
TopBar is a horizontal bar for UI components, typically placed above the canvas. Use addButton, addSlider, addNumberInput to add controls.