-
Notifications
You must be signed in to change notification settings - Fork 248
fix(checkbox): remove unsupported is prop and clean up Storybook #1904
Copy link
Copy link
Open
Description
Description
The CheckBox component no longer supports the is prop (was previously inherited from Box).
Storybook still had a control for is, causing TypeScript errors and Storybook crashes.
Steps to Reproduce
-
Open Storybook for Inputs → CheckBox
-
Try to use the
iscontrol in Storybook -
Observe TypeScript error:
type 'string' is not assignable to type 'ElementType | undefined' -
Component still works, but Storybook shows errors and crashes when
isis selected.
Expected Behavior
- No TypeScript errors
- Storybook loads cleanly
- CheckBox works normally
Actual Behavior
- TypeScript error when passing
is - Storybook crash or object showing instead of proper element
Proposed Solution
- Remove
iscontrol from Storybook for CheckBox - Keep CheckBoxProps clean:
Omit<BoxProps, 'is'> - Ensure Checkbox functionality remains unchanged
- Storybook should run without errors
Notes
- Backward-compatible
- Tested manually in Storybook

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels