Assemble a component with atoms
The features described in this topic are available only to customers enrolled in Early Access and are intended for testing in non-production environments.
In Design Studio, components can be assembled from atoms. Atoms are reusable user interface building blocks that you can combine to create more complex components without writing code.
Examples of atoms available out of the box in SitecoreAI include layout, headings, text elements, images, buttons, and numbers. You can assemble a complex component from simple atoms: for example, a card component might contain a layout atom so you can add a background image, an image atom on top of the background image, a heading atom for the title, some text in a paragraph atom, and a button atom. The Layers panel displays the hierarchy of atoms, making it easier to understand and work with the structure of your component.
Each atom represents a particular type of content or functionality and can contain one or more fields. For example, an image atom contains an image field, while a button atom can contain a field that maps to a link field in the content model.
Assembling components with atoms helps you:
- Create structured component layouts from reusable building blocks.
- Connect the component presentation to the content structured in the model.
- Reuse easily components with different content.
- Reduce dependency on custom component development, empowering marketers to build quickly new components without having to involve a developer.
To assemble a component with atoms:
- In Design Studio, to start with a blank canvas, in the left-hand panel, click Spaces > Add component. Then click on the component to open it in the canvas, in Design mode.
- In the left-hand panel, in the Atoms section, click an atom from the atom catalogue and drag it to the canvas.
- Select an atom in the canvas to configure its properties in the left-hand Selected Atoms panel.
- Use the Layers section to understand the hierarchy of atoms, or to remove them from the component.
- Optionally, you can navigate from the atom to the corresponding field in the content model. Click the an atom in Layers, to open the corresponding content model where the field mapped to the selected atom field is highlighted, helping you understand the relationship between the component structure and its content.