Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to add a custom class to drag-and-drop image component

Avatar

Level 2

I used: 
 

<div data-sly-resource="${'image' @resourceType='foundation/components/image'}"></div>

It has generated "cq-dd-image" class, how to add custom classes to this component?

1 Accepted Solution

Avatar

Correct answer by
Level 8

Simply overlay the default image component in your project and add the custom class as per your requirment

View solution in original post

2 Replies

Avatar

Correct answer by
Level 8

Simply overlay the default image component in your project and add the custom class as per your requirment