@smart-react-components/ui
Version:
SRC UI includes React and Styled components.
27 lines (26 loc) • 1.08 kB
TypeScript
import { IntrinsicStyledCoreProps } from '@smart-react-components/core/element-props/intrinsic-styled-core-props';
import { ContentElement, PaletteProp, Partial, ResponsiveProp, SetState, ShapeProp, SizeProp } from '@smart-react-components/core/types';
import React from 'react';
import { FormValue, OrderPosition } from '../types';
export { OrderPosition as Position } from '../types';
export interface Props extends Partial<ResponsiveProp<'size', SizeProp>>, IntrinsicStyledCoreProps {
active?: FormValue[];
isBlock?: boolean;
isChecked?: boolean;
isIndeterminate?: boolean;
isDisabled?: boolean;
isOutline?: boolean;
isRequired?: boolean;
isSoft?: boolean;
label?: ContentElement;
name?: string;
palette?: PaletteProp;
position?: OrderPosition;
setActive?: SetState<FormValue[]>;
setChecked?: SetState<boolean>;
shape?: ShapeProp;
template?: JSX.Element;
value?: FormValue;
}
declare const Checkbox: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
export default Checkbox;