Button

Buttons are touchable elements used to interact with the screen display text, icons.

Contents:

  • Button

  • Button Group

MonalisaUI

View full example: Button Example

Button

Configuration

Property

Default

Option

Description

title

-

string

Button title

activeOpacity

0.9

number

Determines what the opacity of the wrapped view should be when touch is active

borderRadius

3

number

Button border radius

bgColor

#3e50fa

string

Background color button

titleColor

#fff

string

Color title

buttonStyle

-

-

Style for the button

titleStyle

-

-

Style for the title

loading

false

boolean

Display a loading spinner

loadingColor

#3e50fa

string

Color spinner

disabled

false

boolean

Disables user interaction

transparent

false

boolean

Button transparent

outline

-

string

Button outline

outlineWidth

1

number

Width outline

raised

false

boolean

Raised button styling

iconRight

-

element

Displays Icon to the right of title

iconLeft

-

element

Displays Icon to the left of title

Example

Button Group

Configuration

Button props...

Property

Default

Option

Description

buttons

[ ]

array

Array of buttons for component (required), { component: componentName } if returning a component

onPress

-

function

Method to update Button Group index

buttonStyle

-

-

Style for the Button

style

-

-

Style for the ButtonGroup

Last updated