The Controlled example from the Toggle docs.
npx shadcn@latest add @hextaui/toggle-controlled
toggle-controlled