Unify Applications
Logo
Add Components to your Interface

Add Components to your Interface

Logo

4 mins READ

Overview

Components serve as the building blocks of your application, enabling you to display data, capture user input, and perform various actions. 

In this article, you will learn about the types of components and how to add them to your interface.

Frame 427319210 (1).png
Frame 427319210 (1).png

Layout Components

These are used to structure and organize other components within the interface.

ComponentDescription
ContainerContainer provides structure to the application interface and is used to divide it into a defined rigid layout. A container can hold a fixed number of components within it.
StackStack is a flexible UI component that groups and organizes components vertically or horizontally. Stacks automatically manage spacing and alignment between child elements and allow an indefinite number of components within them.
Thumbnail

Tip

Avoid overusing layout components. Add components directly to the root section for top-level placement. Use containers or stacks to organize components within sections for better design control.

Basic Components

They are essential UI elements like buttons, dividers, icons, and text for building the core functionality of your application.

ComponentDescription
ButtonAdds a clickable button to perform actions.
DividerAdds a horizontal or vertical divider to separate content.
IconButtonAdds a button with an icon to perform actions.
LinkAdds a hyperlink to navigate to different external URLs.
LoaderDisplays a loading indicator.
Progress BarShows progress in a visual bar format.
TextDisplays text static or dynamic
IconAdds an icon to the application for visual emphasis.
ImageDisplays an image.
TagAdds a tag or label for categorization or emphasis.
FiltersAdds filtering options for data displayed in other components.

Rich Components

Rich Components are ready-to-use UI components that pack multiple features into single, easy-to-implement packages.

These components offer sophisticated functionality like interactive tables, customizable charts, and advanced form inputs - all pre-built and easily configurable.

ComponentDescription
AlertDisplays important messages to users in a visually distinct way.
CardA modular content container featuring customizable header, body, and footer sections.
ChartVisualizes data in various chart formats such as bar, line, pie charts etc.
Key ValueUsed for displaying paired data, presenting a key alongside its corresponding value in a clear, structured format 
TabsOrganizes content into multiple tabs for better navigation and structure.
ModalModal box is a popup dialog that overlays the main application and is used to capture user input, display important information, or prompt user actions without navigating away from the current page.
Stat CardDisplays statistical information with visual emphasis.
Multi Stats CardShows multiple statistical metrics in a single card.
Data TablePresents data in a tabular format with various customization options.
DrawerCreates a slide-in drawer for additional content or options.
FormCollects user input through various form fields.
CodeEditorAllows users to write and edit code within the application.
TimelineDisplays a timeline of events or activities.

Repeatable Components

These elements are designed for repeating patterns, such as lists or grids, enabling dynamic data display.

ComponentDescription
RepeatableAllows repeating a set of components for multiple items.
Repeatable ListDisplays a list of repeatable items.

Add Components into Interface

  1. Access the Component Library Navigate to the left sidebar to explore various categories of components such as Layout, Rich, Repeatables, and Basic. Browse through the available components and select the ones that best fit your application’s needs.

    Light template.png
    Light template.png
    Thumbnail

    Tip

    It’s always recommended to rename the component. Click the component in the hierarchy panel, select "Rename" from the three-dot menu, type the new name, and the name of your component will be changed.

  2. Configure Component Properties Click on the component to open its properties panel on the right side, where you can modify settings like data bindings, appearance, and interactions, permissions & much more. You can read more about properties of each component in their specific articles.

    Thumbnail

    Tip

    Before you start adding components, create a rough sketch of your application layout. This will help you visualize the structure and placement of various elements.

Best Practices

  1. Use Layout Components Wisely: Use containers, stacks, and other layout components to logically organize your application. However, avoid overusing these components when they are unnecessary.

  2. Use Meaningful Names for your components: Name your components descriptively to reflect their purpose. This makes it easier for others to understand and maintain your application.

  3. Break Down Complex UI: Divide complex user interfaces into smaller, manageable components. This modular approach makes it easier to debug, test, and maintain your application

FAQs

Can I customize the appearance of components?

Yes, each component has an Appearance tab where you can customize styles such as padding, margin, gap, border, and background color. When you choose the component which you want to edit, a properties panel would open on the right side where you can make all required changes.

How do I add interactions to components?

Interactions can be added through the Interactions tab for each component. You can define events like onClick, onSubmit, or onChange and specify the actions to be performed, such as navigating to a different page, triggering a data source, or showing a notification. You can find all this information in the right pane when you select the component you wish to define interactions for.

How do I manage component permissions?

Permissions for components can be managed in the Permissions section present in the Properties tab. You can set visibility and accessibility based on user roles ensuring that only authorized users can interact with certain components.

Can I nest components within each other?

Yes, components can be nested within each other. For example, you can place a Card component inside a Container, or add multiple components within a Stack. This nesting capability allows for complex and structured layouts.

How do I delete a component from my interface?

To delete a component, go to the component hierarchy and click on the icon to delete the component.