Skip to content

Example Image.vue with <style scoped> #25

Answered by ElMassimo
idank asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Idan 😃

Unless the <Image> component uses inheritAttrs: false, any classes that you pass to it will be added to the root element, so it should be applied just as before.

Scoped styles allow you to target elements rendered in the component, or in any direct children component root elements, so both of the scenarios you mentioned work in Vue.

Feel free to provide more details about the specific scenario.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@idank
Comment options

@idank
Comment options

@idank
Comment options

Answer selected by idank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #24 on March 29, 2023 22:33.