Apps & Pages
Apps and pages are the main building blocks of Buttonize. Every app is composed of one or more pages and every page is then composed of one or more Components.
Example
Preview
First page
The buttons are not interactive in this example.
Second page
The buttons are not interactive in this example.
Page Props
body
Required
Every page is composed of one or more components. Components are of type Display
or Input
. Learn more about Components.
initialState
Optional
Initial state defines actions which will be executed when the page is displayed to the user. The returned values from the actions will be stored in the state under the respective keys. Learn more about Runtime State.
App Props
name
Optional
Name of the application which is then visible in the apps list when users are searching for the apps.
tags
Optional
Tags that will be applied to this app. Tags can be used for filtering the apps or for managing access via Permission System.
description
Optional
Short description of the application’s purpose which is then visible in the apps list next to app name.
stage
Optional
If you are using production/staging/feature deployments, you can distinguish between them by setting a value on this property. The stage value can be used for filtering the apps or for managing access via Permission System.
apiKey
Optional Special Use
We recommend using Buttonize.init
where you can set the default API key for all the apps in a CDK stack. But if you need to use different API keys for different apps in a single stack, you can use this property.
executionRole
Optional Special Use
We recommend using the default execution IAM role generated by Buttonize. But if you want Buttonize to use your custom IAM role, you can use this property.