UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

26 lines (25 loc) 958 B
import React from 'react'; import { InputProps } from './input/input.interface'; import { ApphouseComponent } from './component.interfaces'; import { InputComponentStyles } from './input/input.styles.interface'; import { InputStyles } from '../styles/defaults/themes.interface'; import { CheckboxStyles } from './checkbox/Checkbox'; export interface InputCheckboxStyles { input?: InputComponentStyles; checkbox?: CheckboxStyles; } export interface InputCheckboxProps extends Omit<InputProps, 'styleOverwrites' | 'onChange' | 'size' | 'value' | 'variant' | 'value'>, ApphouseComponent<InputCheckboxStyles> { variant?: keyof InputStyles; /** * If the checkbox is checked */ checked?: boolean; /** * The value of the checkbox */ onChange?: (checked: boolean) => void; } /** * A wrapper on the select component that adds label and description */ export declare const InputCheckbox: React.FC<InputCheckboxProps>;