My current project involves a component called item
, which represents a card displaying information about the item. All cards follow the same basic structure, showing categories like price, color, size, and photo. However, I am interested in applying conditional CSS based on certain criteria, but I'm unsure how to do so due to slight variations in each card's style:
- Price (e.g. larger card for lower prices)
- User favorites
- Component association (cards with same data but different styles based on component location)
I would really appreciate any suggestions on this matter!