Icon Button
An Icon Button is used to display only an icon without a label that can be interacted with. You can use it to Trigger Actions.
See the Icon doc for a list of available open source icon libraries to browse from.
Adding an Icon Button component
To add an Icon Button to your app screen:
- Select the Icon Button component from the Components drawer. You can open the list of components by clicking the
+
button next to Components. - To add an Icon, go to the Configs tab (second tab) in Properties Panel.
- Open the Icon picker next to the Icon config property and select the desired icon.
Style Properties
Style properties allow you to customize the look and feel of the component. Combinations of styles applied to components can be saved as Stylesheets to easily reuse styles throughout your app. Styles can also be set dynamically using Variables. To learn more about all the different styling properties and how they work, take a look at Intro to Styling.
Component Specific Styles
Property | Description |
---|---|
Color | To set the color of the Icon Button. |
Icon Size | To set the size of the icon. Defaults to 32 . |
Configuration Properties
Property | Description |
---|---|
Component Name | To alter the name of the component. The name is reflected in the Components tree. Defaults to Icon Button. |
Data Properties
Setup
Property | Description |
---|---|
Disabled | Disables the button when turned on |
Icon | Allows you to select an icon from the icon picker. |
Custom Icon | Render an icon using a string of the icon's identifier. Overrides the 'icon' property. Full list of icons here. Ex: 'Foundation/align-right', 'Feather/check' |
Conditional Display
You can conditionally display a component based on a given condition. Learn more about conditionally displaying components in the Conditional Display doc.
Triggers
Name | Description |
---|---|
On Press | Runs the Actions when the component is pressed |
On Long Press | Runs the Actions when the component is long pressed |
Updated about 1 month ago