# Props

> The inputs a component gets from the part that holds it.

**Field:** Software Development  
**Category:** Web Development  
**Also known as:** Properties, Component Props, Component Inputs

## Think of it like

Think of it like a name tag you hand to someone. They wear whatever name you give them.

## Definition

Props are the inputs a parent component passes to a child component. They let one component show different things in different places, like a different name or price. A child reads its props but should not change them. If something needs to change, the parent changes the value and passes it down again. The name is short for properties.

## Example

Lucy's page uses the same Button component three times. Its label prop is Save, Cancel and Delete.

## Example code

```jsx
<Greeting name="Emma" />
<Greeting name="Jack" />
```

One component, two different names passed in.

## Why it matters

Props are what make components reusable. Data flows down through them.

## Common mistake

Changing a prop inside the child. It breaks the one-way flow and causes confusing bugs.

## Three principles

- **Inputs from the parent.** Passed down, not up.
- **Read, do not change.** The parent owns the value.
- **Makes reuse easy.** Same part, different data.

## Related terms

- [UI Component](https://learn.benibix.com/term/development/component)
- [UI State](https://learn.benibix.com/term/development/state)
- [React](https://learn.benibix.com/term/development/react)
- [Parameter](https://learn.benibix.com/term/development/parameter)

## Told apart from

- [Props vs State](https://learn.benibix.com/compare/props-vs-state): Props are the inputs a part gets from the part above it, and it should not change them. State is data a part owns and can change, and the screen follows it.

---

Source: https://learn.benibix.com/term/development/props
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
