LogoLogo
HomepageYouTube ChannelInstall from the AppExchange
  • Home
  • Dynamic Components
  • Flow Components
  • Experience Components
  • Projects
  • 👋Welcome
  • Getting Started
    • Product Tour
    • Quickstart Tutorial
    • Understanding The Essentials
      • Component Builder
      • Component Visibility
      • Target Page Object
      • Using Variables and Component Data
      • Publishing your Dynamic Components
      • Dynamic vs. Flow Components
    • Avonni Components App
      • Accessing the App
      • Folders
      • Templates
      • Version management
    • AppExchange Listing Page
    • Installation & Licenses Management
  • Tutorials
    • Projects
    • Components
      • Calendar
        • How to Create Events Quickly by Dragging
        • How to Add an Edit Action to Calendar Events
        • How to Add a New Event Button to the Calendar Header
        • How to Customize the Right-Click Menu
        • How to Reschedule Events with Drag and Drop
      • Columns
        • Creating a Responsive 3-Column Layout
      • Data Table
        • How to customize Data Table style
        • How to make a field editable
        • How to add clickable buttons
        • How to color-code badges
        • How to export data
        • How to configure search
        • How to set columns visibility
      • Kanban
        • Saving Changes on Drag-and-Drop
      • List
      • Metric
      • Record Detail
        • Saving Changes
    • Interactions
      • How to create an interaction to navigate to an object page
      • How to create an interaction to navigate to a record page
      • How to Pass Multiple Selected Records from a Dynamic Component to a Screen Flow
    • Reactive Components
      • Reactive Map and Data Table
      • Master-Detail Relationship with Data Tables
      • Vertical Tabs with Reactive Data Table
    • Style
      • How do you add space or a break between sections or fields?
    • Tips and Tricks
      • Using the Dynamic Component component
  • Component Builder
    • Overview
    • Configuring Components
      • Properties
      • Fields
      • Style
    • Data & Interactions
      • Data Sources
        • Manual
        • Picklist
      • Resources
        • Constant
        • Formula
        • Nested Queries
        • Query
        • Variable
      • Interactions
        • CRUD from Record Variable
        • Download
        • Execute Flow
        • Navigate
        • On Load
        • Open Alert Modal
        • Open Confirm
        • Open Dynamic Component Dialog
        • Open Dynamic Component Panel
        • Open Flow Panel
        • Open Flow Dialog
        • Show Toast
    • Advanced Topics
      • Undo / Redo
      • Copy and Paste
      • Keyboard Shortcut
  • Components
    • Explore All Components
    • Accordion
    • Alert
    • Audio Player
    • Avatar
    • Avatar Group
    • Badge
    • Barcode
    • Blockquote
    • Button
    • Button Group
    • Button Icon
    • Button Menu
    • Button Stateful
    • Calendar
    • Camera 🆕
    • Card
    • Carousel
    • Chart
    • Checkbox
    • Checkbox Button
    • Chip Container
    • Color Picker
    • Columns
    • Combobox
    • Container
    • Counter
    • Data LWC Container
    • Data Table
    • Date Picker
    • Date
    • Date Range
    • Dual Listbox
    • Dynamic Component
    • Formatted Address
    • Formatted Name
    • Formatted Value
    • Header
    • Icon
    • Icon Picker
    • Illustration
    • Image
    • Input Color
    • Input Date
    • Input Pen (Signature)
    • Input Text
    • Kanban
    • List
    • LWC Container
    • Map
    • Media Object
    • Metric
    • PDF Viewer
    • Pivot Table
    • Progress Bar
    • Progress Circle
    • Progress Indicator
    • Rating
    • Record Detail
    • Relationship Graph
    • Scope Notification
    • Section
    • Separator
    • Slider
    • Status
    • Tabbed Container
    • Tabs
    • Text
    • Text Area
    • Timeline
    • Toggle
    • Tree
    • Vertical Visual Picker
    • Video Player
    • Visual Picker
    • Visual Picker Link
  • Help
    • Contact Support
    • Security
    • Performance Guide
    • Deployment Process
    • Release Notes
    • Report Bugs
Powered by GitBook
LogoLogo

Company

  • About Us
  • Pricing

Policies

  • Privacy Policy
  • Terms of Service
On this page
  • Setting Up Your Alert
  • 1. Choose the Alert's Purpose and Style (Variant)
  • 2. Add a Visual Cue with an Icon (Optional)
  • 3. Apply a Textured Background (Optional)
  • 4. Make the Alert Dismissible (Optional)
  • Style
  • Tutorials
  • Style

Was this helpful?

  1. Components

Alert

The Alert component is a simple way to display important messages to users. Think of it like a helpful notification that grabs their attention when something needs to be highlighted.

Setting Up Your Alert

1. Choose the Alert's Purpose and Style (Variant)

The "Variant" property determines your alert's overall appearance and intended message. Select the variant that best suits the type of notification you want to display:

  • Base: A neutral style for general information, updates, or non-critical notifications. This is a good choice for providing general context or feedback.

  • Warning: A more prominent style used to capture the user's attention. Use this for important system messages, cautions, or situations requiring user awareness but not immediate action.

  • Error: A critical style that indicates a serious problem or error that requires immediate attention and action from the user.

  • Offline: A specific style to inform the user that they have lost their internet connection

2. Add a Visual Cue with an Icon (Optional)

You can add an icon to your alert to visually reinforce the message and make it more noticeable.

  • How to Add: Select an icon from the components' properties panel options.

  • Icon Choice: The icon choices will change based on the chosen variant (e.g. a warning icon is more suitable for the warning variant). Choose an icon that is relevant to the alert's message.

3. Apply a Textured Background (Optional)

The "Textured" option adds a subtle texture to the alert's background.

  • Purpose: This can create a softer, visually distinct appearance compared to a solid background.

  • When to Use: Consider using a textured background to differentiate alerts from other elements on the page or to add a touch of visual interest

4. Make the Alert Dismissible (Optional)

Enable the "Dismissible" option to allow users to close the alert.

  • How it Works: A close button ("X") will appear on the alert, allowing users to remove it from the screen.

  • When to Use: Generally, it is good practice to make alerts dismissible, especially for less critical notifications, so users have control over their experience and can clear the alert once they've acknowledged the message.

Style

Want even more control? Head to the "Style" tab to fine-tune the alert's appearance, overriding the default variant styles. You can adjust colors, fonts, spacing, and more.


Tutorials

The following examples demonstrate some of the available functionality for the Alert component.


Style

The "Style" tab gives you fine-grained control over your alert's appearance. Here's a breakdown of the styling options:

Controls the outer spacing around the alert component, creating space between the alert and other elements on the page.

  • Top: Adjust the space above the alert.

  • Right: Adjust the space to the right of the alert.

  • Bottom: Adjust the space below the alert.

  • Left: Adjust the space to the left of the alert

Controls the inner spacing within the alert, affecting the distance between its content (text and icon) and its border.

  • Padding: Control the inner spacing between the alert's content and border.

Sets the visual appearance of the alert's background.

  • ackground Color: Set the background color of the alert

  • Linear Gradient: Apply a linear gradient to the background. You can customize the direction, colors, and transition points of the gradient

Styles the appearance of the text within the alert message.

  • Font Size: Adjust the font size of the alert text.

  • Font Family: Choose the font family for the alert text.

  • Font Weight: Set the font weight (e.g., normal, bold).

  • Font Style: Set the font style (e.g., normal, italic).

  • Text Color: Set the color of the alert text.

  • Text Alignment: Align the text within the alert (e.g., left, center, right)

Customizes the appearance of the border that surrounds the alert.

  • Border Color: Set the color of the alert's border.

  • Border Width: Adjust the thickness of the border.

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

  • Border Radius: Control the roundness of the alert's corners

Styles the icon's appearance within the alert (if an icon is used).

  • Icon Background Color: Set the background color of the alert icon.

  • Icon Foreground Color: Set the color of the alert icon.

  • Foreground Color Close Icon: Set the color of the close icon (if "Is Dismissible" is enabled).

  • Foreground Color Utility: Set the color of any utility icons within the alert

Last updated 2 months ago

Was this helpful?

Create a custom branding Alert
Create an error Alert dismissible