VibeDict

Props

Props

Values a parent component hands to a child component. You use them to put different titles and photos into the same card part.

💡 It's the filling in a waffle mold. The mold (component) stays the same, only the filling (props) changes.

🤖 Say this to your AI

Make the product card a single component that takes the photo, name, price, and discount as props. If there's no discount, hide the discount badge.

The key word is ‘Props’. Including it helps AI understand you much more precisely.

When to use it

  • When you make many cards that look the same but have different content
  • When the AI says 'I'll pass it as props'
  • When you want fixing one part to update it everywhere

Also called: props, prop, properties, attributes, parameters, pass data, prop drilling, component props

Related terms