Z
Zyeon UI

useControllableState · Zyeon UI

A useState-shaped hook that lets one component serve both controlled (value/onChange) and uncontrolled (defaultValue) callers, with a stable setter and prop-accurate updaters.

npx shadcn@latest add @zyeon/use-controllable-state
Preview useControllableState on Zyeon UI's site (opens in a new tab)

Not checked yet

Zyeon UI limits how often it can be asked, and useControllableState hasn't had its turn. Its source will show here once it has.