UNPKG

test-nut-ui

Version:

<p align="center"> <img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;"> </p>

25 lines (24 loc) 921 B
import React, { FunctionComponent } from 'react'; import CheckboxGroup from '../../packages/checkboxgroup'; import { BasicComponent } from '../../utils/typings'; import '@nascent/nutui-icons-react/lib/style.css'; export type CheckboxShape = 'button' | 'round'; export type CheckboxSize = 'middle' | 'small'; export interface CheckboxProps extends BasicComponent { checked: boolean; disabled: boolean; defaultChecked: boolean; shape: CheckboxShape; size: CheckboxSize; labelPosition: 'left' | 'right'; icon: React.ReactNode; activeIcon: React.ReactNode; indeterminateIcon: React.ReactNode; value: string | number; indeterminate: boolean; label: string | number; onChange: (value: boolean) => void; } export declare const Checkbox: FunctionComponent<Partial<CheckboxProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>> & { Group: typeof CheckboxGroup; };