border switch color

This commit is contained in:
pompurin404 2024-08-03 17:55:40 +08:00
parent fa85b365e4
commit e456259fcb
No known key found for this signature in database

View File

@ -12,7 +12,8 @@ const BorderSwitch: React.FC<SiderSwitchProps> = (props) => {
<Switch
classNames={{
wrapper: cn('border-2', {
'border-transparent': !isShowBorder
'border-transparent': !isShowBorder,
'border-foreground': isShowBorder
}),
thumb: cn('absolute z-4', 'transform -translate-x-[2px]'),
...classNames