core2-jvm (latest)
core2-jvm (latest)core-jvm
  • Home
  • Features
  • Spec
  • Guides
  • Sandbox
  • Step Studio
  • Step
    • Action
    • External
    • Help
    • Link Handler
    • Navigation
    • Persist Async
    • Polling
    • Refresh On Change
    • Schema On Change
    • Step Error
    • Suggestions
    • Summary
    • Toolbar
    • Upload
    • Validate Async
    • Schema
    • All Of Schema
    • Array Schema
    • Blob Schema
    • Boolean Schema
    • Const Schema
    • Integer Schema
    • Number Schema
    • Object Schema
    • One Of Schema
    • String Schema
    • Layout
    • Alert Layout
    • Box Layout
    • Button Layout
    • Columns Layout
    • Decision Layout
    • Divider Layout
    • Form Layout
    • Heading Layout
    • Image Layout
    • Instructions Layout
    • List Layout
    • Loading Indicator Layout
    • Markdown Layout
    • Media Layout
    • Modal Layout
    • Paragraph Layout
    • Progress Layout
    • Review Layout
    • Search Layout
    • Section Layout
    • Status List Layout
    • Tabs Layout
    • Upsell Layout
    • Behavior
    • Action Behavior
    • Copy Behavior
    • Dismiss Behavior
    • Link Behavior
    • Modal Behavior
    • Refresh Behavior
    • Subflow Behavior
    • Subflow
    • Dynamic Launch Config
    • Launch Config
    • Modal Presentation
    • Native Launch Config
    • Presentation
    • Push Presentation
    • Action Response Body
    • Error Response Body
    • Flow Response
    • Modal Response Body
    • No Op Response Body
    • Search Initial Layout Config
    • Search Initial Results Config
    • Search Initial State
    • Search Layout Response Body
    • Search Response
    • Search Response Body
    • Search Result
    • Search Results Response Body
    • Subflow Response Body
    • Additional Info
    • Align
    • Autocapitalization Type
    • Autocomplete Token
    • Context
    • Icon
    • Image
    • Inline Alert
    • Media
    • Native Capabilities
    • Request
    • Size
    • Supporting Values
    • Control
    • Tag

Alert Layout

Android - 8.25.0 iOS - 11539 Web - 2.5.0

Show an attention-grabbing message.

Alerts can be used to communicate important messages to the user, drawing more attention than a standard paragraph or info layout.

alert {
    markdown = "Exchange rates are unstable right now, so we can't guarantee this rate."
    context = Context.WARNING
}

When to use

  • When the user needs to perform an action, or be aware of some key information that may impact them.

When not to use

  • When the content is supplementary, consider using an Upsell Layout instead.

Properties

PropertyTypeRequiredDescription
analyticsIdStringNoAn optional identifier to be used in analytics tracking.

callToAction

AlertLayout.CallToAction

No

A titled call to action which can be performed by the user.

Android - 8.72.0 iOS - 8.69 Web - 3.16.0

contextContextNoThe semantics of the alert. Defaults to neutral.
controlStringNoSpecify a particular control to use to represent the layout. If the control is unknown, it will be ignored.
marginSizeNoThe vertical margin to apply after this component. Defaults to md.
markdownStringYesThe content of the alert as string. The following subset of markdown features are supported: Emphasis, strong emphasis.

tags

Array<String>

No

An optional list of identifiers used to configure renderers.

Android - 8.131.0 iOS - 8.125 Web - 4.33.0

typeStringYesIt must be alert.

Related Types

Call To Action

The call to action configuration to be used by Alert Layout.

Properties

PropertyTypeRequiredDescription
accessibilityDescriptionStringNoA description of the call to action to be used by screen readers.
behaviorBehaviorYesThe Behavior that should be performed when user interacts with call to action.

context

Context

No

The semantics of the call-to-action button. Defaults to neutral.

Android - 9.12.0 iOS - 9.12 Web - 5.7.0

titleStringYesA user-facing title.