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
visiblebooleantrueControls the button's visibility. When true, the button is visible; when false, it is hidden.
sizeenum (small, medium, large)mediumSets the button's size, adjusting padding, font size, and layout compactness accordingly.
positionnumber[]0 0 0Specifies the button's position.
primarystring (blue, #fff)#00BA92Defines the primary color of the button (affecting text, background, icon background).
textstring""Sets the button's label text, such as "Open dialog" or "Close".
textcolorstringblackSpecifies the color of the button's text.
uppercasebooleanfalseWhen true, displays the button text in uppercase letters.
roundedbooleanfalseWhen true, gives the button rounded corners.
textonlybooleanfalseWhen true, renders the button as a text-only button with no background.
outlinebooleanfalseWhen true, displays the button with an outline.
variantstring (light, dark)""Sets the button's color scheme mode, either "light" or "dark," for visual theme consistency.