Blame view

天文台pc/tianwentai-ui/node_modules/@radix-ui/react-checkbox/dist/index.d.mts 1.49 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  import * as _radix_ui_react_context from '@radix-ui/react-context';
  import * as React from 'react';
  import { Primitive } from '@radix-ui/react-primitive';
  
  declare const createCheckboxScope: _radix_ui_react_context.CreateScope;
  type CheckedState = boolean | 'indeterminate';
  type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
  interface CheckboxProps extends Omit<PrimitiveButtonProps, 'checked' | 'defaultChecked'> {
      checked?: CheckedState;
      defaultChecked?: CheckedState;
      required?: boolean;
      onCheckedChange?(checked: CheckedState): void;
  }
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
  type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
  interface CheckboxIndicatorProps extends PrimitiveSpanProps {
      /**
       * Used to force mounting when more control is needed. Useful when
       * controlling animation with React animation libraries.
       */
      forceMount?: true;
  }
  declare const CheckboxIndicator: React.ForwardRefExoticComponent<CheckboxIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
  declare const Root: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
  declare const Indicator: React.ForwardRefExoticComponent<CheckboxIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
  
  export { Checkbox, CheckboxIndicator, type CheckboxIndicatorProps, type CheckboxProps, type CheckedState, Indicator, Root, createCheckboxScope };