#How to style reused astro component
2 messages · Page 1 of 1 (latest)
One method is to pass the classes as a prop and use the class:list method in the element(s) to be modified: https://docs.astro.build/en/reference/directives-reference/#classlist. You would need to have the classes ready within the component, or use the is:global reference: https://docs.astro.build/en/reference/directives-reference/#isglobal