import React, { PropsWithChildren, ReactNode } from "react"; import type { XHComponentCommonProps } from "../../types"; declare type OptionType = { label?: string; value?: string; disabled?: boolean; [key: string]: any; } | string; interface CheckboxProps extends PropsWithChildren<{}>, XHComponentCommonProps { option: T[]; fill?: boolean; label?: ReactNode; onChange: (item: T) => void; defaultValue?: T; style?: React.CSSProperties; border?: boolean; /** * paddingHorizontal 横向间距 */ paddingHorizontal?: boolean; dataTrackId?: string; } declare const CheckboxButton: (props: CheckboxProps) => JSX.Element; export default CheckboxButton;