Skip to main content

Button Element

The Button is one of the most commonly used elements in AVStudio. It can be used to trigger actions, navigate between pages, or toggle visibility of components.

How to Add a Button

  1. Open your project in AVStudio and go to the Editor view.
  2. From the left panel, click on Elements.
  3. Click the Add Element dropdown and choose Button.
  4. The button will appear in your layout. You can reposition it freely.

Button Settings Overview

Once selected, the button's settings appear in the right panel.

Basic Properties

SettingDescription
Button Display NameVisible label in the layout and project
Button Target SourceToggle between Static or Dynamic values

Size Settings

  • Set button width and height using fixed px or percentage values.
  • Margins allow spacing from surrounding elements.
  • Available in layouts: apply the button to specific breakpoints.

Class Name

  • Button Class Name: Add a custom class for styling.
  • Element Class Name: Optional secondary styling tag.

Styling and Design Options

Sizing

  • Adjust Text Size, Gap, and Padding.
  • Enable Advanced Padding for individual sides (top, bottom, left, right).

Icon Settings

  • Toggle Use image as icon
  • Choose from:
    • Library (built-in assets)
    • URL (external image)
  • Set:
    • Icon position (Left, Right, etc.)
    • Size, Color, and Spacing

Design

  • Choose Design Preset (Default or custom themes)
  • Button width: Normal, Full-width, Auto
  • Text Alignment, Wrap, and Font Type
  • Set Text Color and Background Color

Borders and Shadows

  • Border style: Solid, Dotted, Dashed
  • Border Color and Border Width
  • Border Radius for rounded corners
  • Shadow options:
    • Enable/Disable
    • Customize Offset, Blur, Spread, and Color
    • Toggle Inset Shadow

Reflect

  • Add a reflection effect to the bottom of the button
  • Customize Start Opacity, End Opacity, and Vertical Offset

Button Text

  • Set the label displayed on the button face

Actions

You can assign actions such as:

  • Navigate to another page
  • Toggle a parameter
  • Send a signal
  • Trigger visibility

👉 Click Add new action to configure what the button does on click.


State Settings

Control when the button appears or how it behaves:

SettingPurpose
Creation VisibilityShow button on Mobile / Desktop / Both
Visibility SignalShow/hide based on logic or parameter
Reserve Space When HiddenKeeps layout intact even when button is hidden
Disabled SignalToggle interactivity using a parameter
Press StateAdd a press-down animation or visual effect

Usage Tips

  • Buttons are best paired with parameter toggles, navigation, or simple logic actions.
  • Use consistent padding and class naming to manage appearance across devices.
  • Add visibility rules to customize UI behavior across page states or roles.