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

Tutorials
Learn to create and display product code barcodes in Salesforce efficiently and effectively.
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.
Changing the Properties
The Variant attribute will define the appearance of the button.
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.
Adding Interactions
Interactions define what will happen when users click on the button. You can find a list of interactions available here.
Here are the available Actions for the Button Component:
On
Click
Important consideration
Due to limitations within Flow Builder, the Button component cannot directly access variable information from components that lack context about a specific record. When configuring interactions using record variables within a flow, ensure the components involved are contextually aware of the record. For scenarios where context is challenging to establish, consider using the Avonni Dynamic Components package, which offers advanced capabilities for managing and passing record context across components.
Specifications
iconName
String
The name of the icon to be used in the format 'utility:down'.
iconPosition
String
Describes the position of the icon.
label
String
Describes the totle of the button.
type
String
To specify the type of button
variant
String
The variant changes the appearance of the button.
click
The event fired when the button is clicked.
Text
Line Height
The line-height property specifies the height of a line.
Font Size
Define the font size for the text label
Font Style
Define the font style for the text label
Font Weight
Define the font weight for the text label
Color
Define the font color for the text label
Color Hover
Define the font color for the text label when hover
Color Active
Define the font color for the text label when active
Background
Color
Define a button background color
Color Active
Define a button background color when active
Color Hover
Define a button background color when mouse hover
Border
Size
Define a border size
Radius
Define a border radius
Style
Define a border style
Color
Define a border color
Color Active
Define a border color when active
Color Hover
Define a border color when mouse hover
Box Shadow
Shadow
Attach one or more shadows to a button.
Shadow Focus
Attach one or more shadows to a button when the user clicks on the button.
Last updated
Was this helpful?
