controlled component

A component whose state, such as whether it is open or checked, is passed in by its parent, which also handles changes.

In more detail

The parent supplies a value like open and a callback like onOpenChange, and the component just displays what it is told. This suits workflows where other parts of the page must know or set the state.

Related terms

Taught in

References