import{_ as t,a,b as d,ag as l}from"./chunks/framework.BcrMLAmg.js";const f=JSON.parse('{"title":"FlexBox","description":"","frontmatter":{},"headers":[],"relativePath":"references/elements/Flexbox.md","filePath":"references/elements/Flexbox.md","lastUpdated":1757845213000}'),r={name:"references/elements/Flexbox.md"};function o(n,e,i,s,h,x){return d(),a("div",null,e[0]||(e[0]=[l('

FlexBox

This is the FlexBox class. It is a container that arranges its children in a flexible layout.The flexbox element adds the following properties to its children:

Extends: Container

Properties

PropertyTypeDefaultDescription
flexDirectionstring"row"The direction of the flexbox layout "row" or "column"
flexSpacingnumber1The spacing between flex items
flexJustifyContentstring"flex-start"The alignment of flex items along the main axis
flexAlignItemsstring"flex-start"The alignment of flex items along the cross axis
flexCrossPaddingnumber0The padding on both sides of the cross axis
flexWrapbooleanfalseWhether to wrap flex items onto multiple lines

Functions

MethodReturnsDescription
FlexBox:addChildFlexBoxAdds a child element to the flexbox
FlexBox:addLineBreakFlexBoxAdds a new line break to the flexbox.

FlexBox:addChild(element)

Adds a child element to the flexbox

Parameters

Returns

FlexBox:addLineBreak(self)

Adds a new line break to the flexbox

Parameters

Returns

',19)]))}const u=t(r,[["render",o]]);export{f as __pageData,u as default};