Skip to content

Commit

Permalink
Merge pull request #265 from reaviz/checkbox-initial-state
Browse files Browse the repository at this point in the history
Add initial state for checkbox
  • Loading branch information
SerhiiTsybulskyi authored Oct 31, 2024
2 parents d4f04ac + d9d6762 commit e5abc8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/form/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export const Checkbox: FC<CheckboxProps & CheckboxRef> = forwardRef(
}}
>
<motion.svg
initial={checked ? 'checked' : 'unchecked'}
animate={checked ? 'checked' : 'unchecked'}
whileHover={!disabled ? 'hover' : undefined}
whileTap={!disabled ? 'pressed' : undefined}
Expand Down

0 comments on commit e5abc8f

Please sign in to comment.