For the complete documentation index, see llms.txt. This page is also available as Markdown.

Button

The Avonni Button component provides customizable buttons to initiate actions, navigate pages, or perform specific functions.

Overview

The Avonni Button is an interactive control you place on a Flow screen to let users trigger actions — navigate to the next step, launch a sub-flow, open a modal, or fire any other interaction. It supports a wide range of visual styles, optional icons, full-width layout, disabled states, and a tooltip on hover.

Tutorials

Name
Description

Learn to customize the flow's Previous, Next, and Finish buttons.

Learn to add a 'Cancel and Close' button in Salesforce screen flows with Avonni Button.

Learn to create a button in Salesforce that opens a new flow with ease.


Configuration

To configure it, click the component on the Flow screen. The Edit Button Component panel opens on the right with three tabs: Properties, Interactions, and Style. The sections below mirror the Properties tab.

The Properties tab of the Button property editor, showing Label, Variant, Icon Name, Icon Source, Icon Size with its five values, Icon Position, Stretch and Disabled

Properties

Label sets the text displayed on the button. Leave it empty if you only want to show an icon.

Variant defines the button's visual style. Default: Neutral.

Variant
Description
Suggested Use

Bare

Minimalist, no background or border.

Unobtrusive buttons, minimal visual distraction.

Base

Standard style with a background color.

Primary actions in forms or interfaces.

Bare-Inverse

Bare style with an inverse color scheme.

Dark backgrounds or themes.

Border

Only a border without a filled background.

Secondary actions, less emphasis.

Border-Filled

Border with background fill.

Slightly more emphasis than border-only.

Border-Inverse

Border style with inverse colors.

Use on dark backgrounds.

Brand

Styled with brand's colors.

Brand-representative actions.

Brand Outline

Brand colors in an outline style.

Secondary brand-related actions.

Container

Looks contained within a box.

Grouping related actions or section-specific buttons.

Destructive

Indicates a dangerous or irreversible action, often red.

Delete, remove, or clear actions.

Destructive-Text

Text-only style for destructive actions.

Less prominent but critical actions.

Inverse

For use on dark or vibrant backgrounds.

Stand out against a bold background.

Neutral

Subdued and versatile.

Non-emphasized or similar series of actions.

Success

Indicates a positive action, often green.

Save, Confirm, or other successful operations.

Every value of the Variant property on an Avonni Button, one button per variant labelled with its own name. Bare Inverse, Border Inverse and Inverse are shown on a dark swatch because they are drawn for dark backgrounds

Icon Name adds a Lightning Design System icon (e.g., utility:add) to the button.

Icon Source supplies a custom image URL or uploaded file to use as the button icon instead of a Lightning Design System icon. It takes priority over Icon Name.

Icon Size controls the icon's size: Xxs, Xs, Small, Medium, or Large. Default: Xs. Requires Icon Name to be set.

Icon Position places the icon to the Left or Right of the label. Requires Icon Name to be set.

Stretch expands the button to fill the full width of its container.

The same brand button with Stretch off and with Stretch on, the second filling the full width of the screen

Disabled makes the button visible but non-interactive. Use this to conditionally gray out the button based on flow state.

Title sets a tooltip shown when the user hovers over the button.

The Button ships with ready-made configurations you can start from: Completed, Delete, Download, Next Screen, Outline, Previous Screen, Stretch Brand, and Stretch Neutral. You can find them in the 'Templates' section of the Avonni Button Component.

Advanced Options

Type controls the HTML button type: Button (default), Reset, or Submit. In most flow scenarios, leave this as Button.

Interactions

Interactions define what happens when users interact with the Button. Configure them from the Interactions tab of the Edit Button panel.

Click

Fires when the user clicks the button. Use this to navigate to the next step, launch a sub-flow, open a modal, or trigger any other action. The clicked output variable is set to true when this event fires.

Styling

The Style tab gives you fine-grained control over the button's appearance, overriding the default variant styles. Configure it from the Style tab of the Edit Button panel.

Controls the outer spacing around the button, creating space between it and other elements on the screen.

  • Top / Right / Bottom / Left: Adjust the space on each side of the button.

Adjusts display when opened as a modal dialog inside a Flow screen.

  • Width: Sets the dialog width.

  • Height: Sets the dialog height.

  • Background Color: Sets the dialog background color.

Controls the inner spacing between the button's content and its edges. These values are set per variant (Base, Bare, Bare-Inverse, Border, Border-Filled, Border-Inverse, Brand, Brand Outline, Container, Destructive, Destructive-Text, Inverse, Neutral, Success).

  • Block Start / Block End: Adjust the vertical inner spacing.

  • Inline Start / Inline End: Adjust the horizontal inner spacing.

Styles the button's text label. The Color values are set per variant (Base, Bare, Bare-Inverse, Border, Border-Filled, Border-Inverse, Brand, Brand Outline, Container, Destructive, Destructive-Text, Inverse, Neutral, Success).

  • Color / Color Active / Color Hover: Set the text color in the default, active, and hover states.

  • Font Size / Font Style / Font Weight / Font Family: Control the label typography.

  • Line Height: Set the height of the text line.

  • Horizontal Alignment: Align the label within the button.

Sets the button's background. These values are set per variant (Base, Bare, Bare-Inverse, Border, Border-Filled, Border-Inverse, Brand, Brand Outline, Container, Destructive, Destructive-Text, Inverse, Neutral, Success).

  • Color / Color Active / Color Hover: Set the background color in the default, active, and hover states.

Customizes the border surrounding the button. The Color values are set per variant (Base, Bare, Bare-Inverse, Border, Border-Filled, Border-Inverse, Brand, Brand Outline, Container, Destructive, Destructive-Text, Inverse, Neutral, Success).

  • Color / Color Active / Color Hover: Set the border color in the default, active, and hover states.

  • Size: Adjust the border thickness.

  • Style: Choose a border style (e.g. solid, dashed, dotted).

  • Radius: Control the roundness of the corners.

Attaches shadows to the button to add depth.

  • Shadow: Set the button's default shadow.

  • Shadow Focus: Set the shadow shown when the button is focused.

Styles a custom image used as the button's icon (when Icon Source is set).

  • Border Color / Border Size / Border Style / Border Radius: Customize the border around the image.

  • Object Fit: Control how the image is resized to fit its box.

Output Variables

The Button exposes these output variables you can reference in your flow after the screen. To use them, select the screen element in Flow Builder, then the Button component, and pick the output variable you need.

Button Click

Set when the user clicks the button.

Output variable
Type
What it returns

Clicked

Boolean

true when the user has clicked the button.

Example: Use Clicked in a flow decision to branch logic — for instance, show a confirmation screen only after the user clicks a "Submit" button.

Flow Interaction Output Variables

Like all interactive Flow components, the Button exposes generic output slots (Variable 1–10) that an Open Flow Dialog or Open Flow Panel interaction can fill with values from a launched flow. See Flow Interaction Output Variables.

Last updated

Was this helpful?