Open jackvane opened 5 days ago
I use onChange
, not onCheckedChange
and it works
const HSwitch = () => {
const { t } = useLocale()!;
const { settings, setSettings } = useAppSettings()!;
return <HStack justifyContent='space-between'>
<Text fontWeight='medium'>{t.settings.h24()}</Text>
<Switch checked={settings.time24h}
onChange={() => setSettings('time24h', !settings.time24h)}
/>
</HStack>;
}
Add <ArkSwitch.HiddenInput/>
to
Yes, a lot of form base component rely on Ark
's input, and it not on Park UI docuument, if some component not even working, just check Ark UI
document, it would help a lot cuz Park UI
rely on it
like https://ark-ui.com/solid/docs/components/switch
Current Version: "@ark-ui/solid": "^3.4.1"
When assigning controlled state to the switch, clicking on the switch does not change state. If you remove all props from the Switch component, clicking on the switch still does nothing.
I am using the default switch as per the docs: