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

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

import { PropTypes } from '@zag-js/types';
import { Optional } from '../../types';
import * as editable from '@zag-js/editable';
export interface UseEditableProps extends Optional, 'id'> {
    /**
     * The initial edit state of the editable when it is first rendered.
     * Use when you do not need to control its edit state.
     */
    defaultEdit?: editable.Context['edit'];
    /**
     * The initial value of the editable when it is first rendered.
     * Use when you do not need to control the state of the editable.
     */
    defaultValue?: editable.Context['value'];
}
export interface UseEditableReturn extends editable.Api {
}
export declare const useEditable: (props?: UseEditableProps) => UseEditableReturn;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy