Elements Panel

As you may know, elements are the building blocks of components. Components may contain any number of HTML elements and inner components inside them.
When you open a board in Codux, you'll see on the left side of the UI a panel called the Elements panel. This panel shows a visual representation of a component's structure (its JSX, which can be thought of as the HTML of your component).
For a walkthrough of the panel, be sure to check out this video:
In the image below, you can see an Elements panel filled with various elements. Notice how all the component's elements show in a tree, sorted according to their hierarchy, where child elements appear indented beneath their parents.
The selected element, sandwiched between other HTML elements, is referred to as an inner component. In this case, it is also a repeater, as indicated by the element icon. The repeated element, 'boxes', was written once in the code, and helped produced the tutorial project lesson that you see above.
To drill into a component to see its structure and to edit it, click on the pencil icon while hovering over it in the Elements panel, or double-click on the element on the board to drill a level deeper into the element hierarchy.

Viewing an Element's Properties and Styles 

When you use Codux, you're probably editing a specific element. Codux is dependent on you selecting specific elements to style and edit the properties of, so select an element from the tree or the stage to view and edit its properties and styles from the panels on the right.
You can also edit an element from its code. Select </> View code from the element's menu options to open it in the built-in code drawer (or Open in VS Code to open it in your IDE).

Adding Elements to Components and Boards 

The Add Elements panel provides a quick, visual way to add new HTML elements and inner components to your components. Simply drag and drop an element from the Add panel (accessible from the + icon) to the Elements panel to add it to your component.
For more information, and for instructions on adding external component libraries to your projects and making their components accessible from the Add Elements panel, refer here.

Element Types 

The Elements panel indicates the type of each element. By 'type', we mean one of the following:
Here's a legend to help you identify the type:

Rearranging Elements 

It's easy to rearrange elements in the Elements panel by dragging them. Say you wanted to rearrange the order that components show in your app - nothing to it!
Important!
Behind the scenes, Codux rearranges the structure of your component (its JSX code) as you rearrange elements visually. It is not changing its CSS. To create specific layouts, use the Styles panel.
Note:
It isn't possible to drag repeater or fragment elements because their order can't be declared. As your app runs, JavaScript logic makes these elements appear multiple times, and because logic is determining their order, it isn't possible to rearrange them in the element hierarchy.

Editing and Removing Elements 

When you right-click on a component in the Elements panel, you'll see various actions available for the element, such as drilling into it to edit it, duplicating it, resetting its states, viewing its code in the code drawer or IDE, and, of course, deleting it.
You can also duplicate an element by selecting the original, pressing the Alt key, and dropping the copy in its new location.