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

package.dist.components.switch.use-switch.d.cts Maven / Gradle / Ivy

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy