props

The inputs passed to a component, written like HTML attributes, such as <Avatar size={48} />.

In more detail

Props flow one way, from parent to child, and a component should treat them as read-only. Changing what a parent passes causes the child to render again with the new values.

Example

Props passed from a Next.js Server Component to a Client Component must be serializable: no ordinary functions or class instances.

Related terms

Taught in

References