Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ui/elements/Form/Checkbox/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ export interface CheckboxProps {
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;

/**
* Indicates if the checkbox is checked initially.
* Controls the current checked state of the checkbox.
*
* This is a controlled prop. You must manage this value in the parent component,
* and update it based on user interaction via the `onChange` callback.
Comment on lines +61 to +64

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need not be too verbose here

Suggested change
* Controls the current checked state of the checkbox.
*
* This is a controlled prop. You must manage this value in the parent component,
* and update it based on user interaction via the `onChange` callback.
* Controls the current checked state of the checkbox.
*

*
* @default false
*/
isChecked?: boolean;
Expand Down