import { QCheckBox, QWidget, QCheckBoxSignals } from "@nodegui/nodegui"; import { RNWidget } from "../config"; import { AbstractButtonProps } from "../AbstractComponents/RNAbstractButton"; /** * The CheckBox component provides ability to add and manipulate native button widgets. It is based on * [NodeGui's QCheckBox](https://docs.nodegui.org/docs/api/generated/classes/QCheckBox). * ## Example * ```javascript * import React from "react"; * import { Renderer, CheckBox, Window } from "@nodegui/react-nodegui"; * const App = () => { * return ( * * * * ); * }; * const checkboxStyle = ` * color: white; * `; * Renderer.render(); * * ``` */ export interface CheckBoxProps extends AbstractButtonProps { /** * This property holds whether the button is checked. [QCheckBox: setChecked](https://docs.nodegui.org/docs/api/generated/classes/QCheckBox/#checkboxsetcheckedcheck) */ checked?: boolean; } /** * @ignore */ export declare class RNCheckBox extends QCheckBox implements RNWidget { setProps(newProps: CheckBoxProps, oldProps: CheckBoxProps): void; appendInitialChild(child: QWidget): void; appendChild(child: QWidget): void; insertBefore(child: QWidget, beforeChild: QWidget): void; removeChild(child: QWidget): void; static tagName: string; }