docs icon indicating copy to clipboard operation
docs copied to clipboard

Show how to merge classes passed as props when children have existing classes

Open aretrace opened this issue 1 year ago • 1 comments

📚 Subject area/topic

Component classes

📋 Suggested page

https://docs.astro.build/en/guides/styling/#passing-a-class-to-a-child-component

📋 General description or bullet points (if proposing new content)

Currently, the docs do not show what to do when you pass a class to a child component while the component already has its classes. How would you merge the class passed as a prop with the existing classes in a child component?

🖥️ Reproduction of code samples in StackBlitz

No response

aretrace avatar Mar 09 '24 21:03 aretrace