prop

An input passed to a React component, written like an HTML attribute, such as size="lg" in <Button size="lg">.

In more detail

Props flow from parent to child and are read-only inside the child. A component's props are its public API, so design systems design them carefully and keep them stable across versions.

Example

<Box as="button" variant="secondary">Action</Box>

Related terms

Taught in

References