Skip to content

Component Functions

Leo Codes edited this page Sep 29, 2024 · 3 revisions

What is a Component function?

A component function handles component data and management without the requirement of adding the component to a variable. for example:

ui.WithPosition

// X=10, Y=3
ui.WithPosition(10, 3, ui.Text("Some text!"))

ui.WithSize

ui.WithSize(width, height, ui.Div(components...))
Clone this wiki locally