# Display inline components grouped

When editing content with C4L, some components (such as `Due date`, `Estimated time`, or `AI use allowed`) are designed to appear as short labels. In many cases, it is clearer to show more than one of them on the same row.

At the moment, the plugin does not provide a direct option to group these components exactly as needed. For now, the most reliable method is to use **code mode** and add a small HTML structure.

You do **not** need programming knowledge: just copy a template, paste it, and replace the sample text.

### Step by step

1. Edit the page or activity where you want to display these components.
2. The components should **not** have the Align Left variant applied, so if that's the case, remove it first. The alignment will be controlled from the container we are adding.
3. Open the editor code mode Main menú →View → Source Code.
4. Find the place where you want the block to appear, i.e:

```html
  <div class="c4lv-duedate" aria-label="Due date">
    17 Nov
  </div>
  <div class="c4lv-aiuseallowed" aria-label="AI use allowed">
    AI use allowed
  </div>
```

6. Wrap your components with the `c4l-inline-group` class:

```html
<div class="c4l-inline-group">
  <div class="c4lv-duedate" aria-label="Due date">
    17 Nov
  </div>
  <div class="c4lv-aiuseallowed" aria-label="AI use allowed">
    AI use allowed
  </div>
</div>
```

7. (optional) By default, that class aligns the group of items to the right. You can aligne those to the left by adding the class `c4l-display-left`:

```html
 <div class="c4l-inline-group c4l-display-left">
  <div class="c4lv-duedate" aria-label="Due date">
    17 Nov
  </div>
  <div class="c4lv-aiuseallowed" aria-label="AI use allowed">
    AI use allowed
  </div>
</div>
```

7. Save changes and return to the normal editor view.

### Which components can be grouped?

* [Estimated time](https://componentsforlearning.org/components/estimated-time/)
* [Due date](https://componentsforlearning.org/components/due-date/)
* [Grading value](https://componentsforlearning.org/components/grading-value/)
* [AI use allowed](https://componentsforlearning.org/components/ai-use-allowed/)
* [AI use not allowed](https://componentsforlearning.org/components/ai-use-not-allowed/)
* [AI use reported](https://componentsforlearning.org/components/ai-use-reported/)
