Skip to content

Commit

Permalink
Include base Checkbox props in uncontrolled Checkbox props type
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyEJohnson committed Nov 13, 2024
1 parent 31d499d commit 99a8fd9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/forms/uncontrolled/inputTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FormInputWrapper, FormLabelText, HelpText, InputProps, RequiredIndicato
import { AbstractFormData } from "../controlled/hooks";
import { partitionSequence } from "@openstax/ts-utils/misc/partitionSequence";
import { Radio as StyledRadio } from "../../Radio";
import { Checkbox as StyledCheckbox, CheckboxSize, CheckboxVariant} from "../../Checkbox"
import { Checkbox as StyledCheckbox } from "../../Checkbox"

/*
* input element
Expand Down Expand Up @@ -193,12 +193,11 @@ export const Radio = ({
/*
* checkbox element
*/
type CheckboxProps = React.ComponentPropsWithoutRef<'input'> & InputProps & {
type CheckboxProps = React.ComponentPropsWithoutRef<'input'> & InputProps &
Parameters<typeof StyledCheckbox>[0] & {
onChangeValue?: (value: boolean | undefined) => void;
wrapperProps?: React.ComponentPropsWithoutRef<'label'>;
error?: string[];
size?: CheckboxSize;
variant?: CheckboxVariant;
};
const CheckboxLine = styled.div`
flex-direction: row;
Expand Down

0 comments on commit 99a8fd9

Please sign in to comment.