Skip to content

Components

Components are the visible parts of Buttonize apps.

There are two types of components

  • Display - read-only components displaying text and data. For example Display.heading.
  • Input - read-write components with the possibility to hook up Actions to them. For example Input.text.

Example

lib/MyStack.ts
6 collapsed lines
import { Action, Buttonize, ButtonizeApp, Display, Input } from 'buttonize/cdk'
Buttonize.init(this, {
apiKey: 'btnz_mybuttonizekey1234567'
})
new ButtonizeApp(this, 'MyButtonizeApp')
.page('MyButtonizePage', {
body: [
Display.heading('Hello {{name}}, this is my page'),
Input.text({
id: 'name',
label: 'What is your name?',
placeholder: 'Joe'
})
]
})

Preview

app.buttonize.io

Available components