You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to set a switch based of a DB-value (like has agreed to T&C) and am using shadcn.
I can set the switch to checked but not the thumbs component of it, because Switch.Thumbs is referred to in the bits-ui docs, but in the shadcn docs, there is word of it. let ruleSwitch = rules_accepted ? 'checked' : 'unchecked';
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to set a switch based of a DB-value (like has agreed to T&C) and am using shadcn.
I can set the switch to checked but not the thumbs component of it, because Switch.Thumbs is referred to in the bits-ui docs, but in the shadcn docs, there is word of it.
let ruleSwitch = rules_accepted ? 'checked' : 'unchecked';
The problem after that is, that my code disables the client side behaviour of the Switch. So its usually either checked or unchecked.
Beta Was this translation helpful? Give feedback.
All reactions