add hw2
This commit is contained in:
33
node_modules/@headlessui/react/dist/components/checkbox/checkbox.d.ts
generated
vendored
Normal file
33
node_modules/@headlessui/react/dist/components/checkbox/checkbox.d.ts
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
import React, { type ElementType, type Ref } from 'react';
|
||||
import type { Props } from '../../types.js';
|
||||
import { type HasDisplayName, type RefProp } from '../../utils/render.js';
|
||||
declare let DEFAULT_CHECKBOX_TAG: "span";
|
||||
type CheckboxRenderPropArg = {
|
||||
checked: boolean;
|
||||
changing: boolean;
|
||||
focus: boolean;
|
||||
active: boolean;
|
||||
hover: boolean;
|
||||
autofocus: boolean;
|
||||
disabled: boolean;
|
||||
indeterminate: boolean;
|
||||
};
|
||||
type CheckboxPropsWeControl = 'aria-checked' | 'aria-describedby' | 'aria-disabled' | 'aria-labelledby' | 'role';
|
||||
export type CheckboxProps<TTag extends ElementType = typeof DEFAULT_CHECKBOX_TAG, TType = string> = Props<TTag, CheckboxRenderPropArg, CheckboxPropsWeControl, {
|
||||
value?: TType;
|
||||
disabled?: boolean;
|
||||
indeterminate?: boolean;
|
||||
checked?: boolean;
|
||||
defaultChecked?: boolean;
|
||||
autoFocus?: boolean;
|
||||
form?: string;
|
||||
name?: string;
|
||||
onChange?: (checked: boolean) => void;
|
||||
tabIndex?: number;
|
||||
}>;
|
||||
declare function CheckboxFn<TTag extends ElementType = typeof DEFAULT_CHECKBOX_TAG, TType = any>(props: CheckboxProps<TTag, TType>, ref: Ref<HTMLElement>): React.JSX.Element;
|
||||
export interface _internal_ComponentCheckbox extends HasDisplayName {
|
||||
<TTag extends ElementType = typeof DEFAULT_CHECKBOX_TAG, TType = string>(props: CheckboxProps<TTag, TType> & RefProp<typeof CheckboxFn>): React.JSX.Element;
|
||||
}
|
||||
export declare let Checkbox: _internal_ComponentCheckbox;
|
||||
export {};
|
||||
Reference in New Issue
Block a user