Need help?
Ask a question or report a problem on GitHub.
Open an issue
panel
A plain container with no border or shadow. Use it to group controls, or to give a group its own background.
Syntax
Otter
create panel into name
Properties
Output
width number Width in pixels height number Height in pixels background color Background color spacing number The gap between the controls inside it padding number The space between the edge and the controls align word Alignment of what is inside spread flag Distribute the controls apart
Example
Otter
create window into app title of app is "Panel" create panel into notice background of notice is "#1e293b" padding of notice is 12 create text into words text of words is "Grouped inside a panel" foreground of words is "white" put words in notice put notice in app show app
Expected result
A dark panel containing one line of white text.
card Layout