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