Skip to content

Button

The button represents the foundational HTML button, enhanced with a cohesive design theme and additional customizable options.

Example

Below is an example of the button component.

Props

PropertyTypeDefaultDescription
visiblebooleantrueDetermines whether the button is rendered. If false, the button is hidden from the interface.
positionnumber[]0 0 0Defines the button’s position in 3D space as an array of coordinates.
sizeenum (small, medium, large, extra-large)mediumControls the overall button size, including padding, font size, and layout density.
opacitynumber1Specifies the button's opacity.
colorstring (blue, #fff)#00BA92Defines the primary button color, affecting the background, text, and icon styling.
modestring (light, dark)""Applies a light or dark visual theme to the button for consistent appearance within different UI themes.
contentstring""Specifies the label text displayed inside the button (e.g., “Open dialog”, “Close”).
iconstring""Defines the icon displayed within the button.
iconposstring(left, right)"left"Determines whether the icon is displayed to the left or right of the button text.
textcolorstringblackSets the color of the button's text. If the contrast with the background is insufficient, the text color will not be applied.
textonlybooleanfalseWhen set to true, it renders the button as text-only, removing the background.
uppercasebooleanfalseDisplays the button label in uppercase letters when enabled.
elevatedbooleantrueAdds a shadow effect to create a raised, three-dimensional appearance.
roundedbooleanfalseApplies rounded corners to the button.
roundedsidesstring(full, left, right)"full"Defines which sides of the button are rounded when rounded is enabled (full, left, or right).
tilebooleanfalseRemoves rounded styling and renders the button with square edges.
outlinedbooleanfalseWhen true, displays the button with an outline.