import{_ as a,o as s,c as e,Q as n}from"./chunks/framework.4313453f.js";const u=JSON.parse('{"title":"Frame","description":"","frontmatter":{},"headers":[],"relativePath":"references/frame.md","filePath":"references/frame.md","lastUpdated":null}'),l={name:"references/frame.md"},o=n(`
Frames are elements in Basalt used for organizing user interfaces. Unlike BaseFrames, Frames always require a parent container.
Frame inherit from Container, VisualElement and BasicElement
local basalt = require("basalt")
local main = basalt.addFrame() -- This is a Baseframe
local subFrame = main:addFrame() -- This is a Frame
basalt.autoUpdate()local basalt = require("basalt")
local main = basalt.addFrame() -- This is a Baseframe
local subFrame = main:addFrame() -- This is a Frame
basalt.autoUpdate()