All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.components.checkbox.use-checkbox.d.ts Maven / Gradle / Ivy

import { PropTypes } from '@zag-js/react';
import { Optional } from '../../types';
import * as checkbox from '@zag-js/checkbox';
export interface UseCheckboxProps extends Optional, 'id'> {
    /**
     * The checked state of the checkbox when it is first rendered.
     * Use this when you do not need to control the state of the checkbox.
     */
    defaultChecked?: checkbox.Context['checked'];
}
export interface UseCheckboxReturn extends checkbox.Api {
}
export declare const useCheckbox: (ownProps?: UseCheckboxProps) => UseCheckboxReturn;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy