UNPKG

@td-design/react-native

Version:

react-native UI组件库

8 lines 511 B
import type { CheckboxProps, CheckboxStatus, TransformedOption } from './type'; export default function useCheckbox(props: Pick<CheckboxProps, 'value' | 'options' | 'disabledValue' | 'defaultValue' | 'onChange' | 'showCheckAll'>): { transformedOptions: TransformedOption[]; checkedAllStatus: CheckboxStatus; handleAllChange: (_: string | number, status: CheckboxStatus) => void; handleChange: (value: string | number, status: CheckboxStatus) => void; }; //# sourceMappingURL=useCheckbox.d.ts.map