I am new to working with Next.js and I have a query regarding CSS modules
I currently have a Product component structured as follows:
import styles from "./Product.module.css"
function Product({className=""}) {
return (
<div className={`${styles.container} ${className}`>
<p className={styles.title}>product</p>
</div>
)
}
Now, I am looking to create a new component called ProductCard which utilizes the Product component but requires extending the style of the p tag inside it:
import styles from "./ProductCard.module.css"
function ProductCard() {
return (
<div className={styles.container}>
<Product className={styles.product}/>
</div>
)
}
How can I incorporate the styling of the p tag in my Product component using a className provided by ProductCard?