Custom Components vs Element Pack

Since Custom Components are only defined on a Project base I wanted to move along with those. When using the same code in the “Template” of the Custom Component I am getting a different response while when I use the same code in a Element Pack.

Even so in both cases the root element is a div and has an hover effect and rounded edges it does not show in the Custom Component.

Wow, looks like you’re getting on well!

Issues like this are usually down to a coding error in the component, if you share it with us we can take a look for you :blush:

Figured it out. The component works the same in both cases. The thing was the id={{id}}. If that is present in both cases the styling dissappears.

With ID

Without ID

Quotes missing

id={{id}}id="{{id}}"

1 Like