Input.button
Renders an interactable button.
The button can be used to trigger a lambda, change pages within a Buttonize app, or interact with some other AWS services via Buttonize Actions.
Usage - changing the page
Preview
The buttons are not interactable in this example.
app.buttonize.io
Usage - invoking a lambda
Preview
The buttons are not interactable in this example.
app.buttonize.io
Props
label
Required
string
The text to display inside the button.
kind
Optional
’primary’ | ‘secondary’ | ‘tertiary’
A variant of the button. Default is
primary
. intent
Optional
’default’ | ‘positive’ | ‘negative’
An intent of the button. Default is
default
. disabled
Optional
boolean
Whether or not the button can be interacted with. Default is false
.
onClickFinished
Optional
function
A callback that will be invoked when the onClick
function is finished
executing.
This is also often used to redirect to the next page via Action.buttonize.app.changePage(...)
.
spacingTop
Optional
’sm’ | ‘md’ | ‘lg’ | ‘xl’
The amount of space to give above the component.
spacingBottom
Optional
’sm’ | ‘md’ | ‘lg’ | ‘xl’
The amount of space to give below the component.
width
Optional
1 | 2 | 3 | 4
The width of the component.