Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions types/carbon-components-react/carbon-components-react-tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
AccordionItem,
AspectRatio,
Button,
Checkbox,
CodeSnippet,
CodeSnippetType,
Column,
Expand Down Expand Up @@ -1191,3 +1192,15 @@ const dataTableSkeletonBasic = (
</Dialog>
);
}

//
// Checkbox
//
{
const inputRef = React.createRef<HTMLInputElement>();
<Checkbox
id=""
labelText=""
ref={inputRef}
/>;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { ReactInputAttr } from "../../../typings/shared";
import { ForwardRefReturn, ReactInputAttr } from "../../../typings/shared";

type ExcludedAttributes = "id" | "onChange" | "type";

Expand All @@ -20,6 +20,6 @@ export interface CheckboxProps extends Omit<ReactInputAttr, ExcludedAttributes>
wrapperClassName?: string | undefined,
}

declare const Checkbox: React.RefForwardingComponent<HTMLInputElement, CheckboxProps>;
declare const Checkbox: ForwardRefReturn<HTMLInputElement, CheckboxProps>;

export default Checkbox;