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

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

Go to download

A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.

The newest version!
import { PropTypes } from '@zag-js/react';
import { Optional } from '../../types';
import { CollectionItem, ListCollection } from '../collection';
import * as select from '@zag-js/select';
export interface UseSelectProps extends Optional, 'dir' | 'getRootNode' | 'open.controlled' | 'collection'>, 'id'> {
    /**
     * The initial open state of the select when it is first rendered.
     * Use when you do not need to control its open state.
     */
    defaultOpen?: select.Context['open'];
    /**
     * The initial value of the select when it is first rendered.
     * Use when you do not need to control the state of the select.
     */
    defaultValue?: select.Context['value'];
    /**
     * The collection of items
     */
    collection: ListCollection;
}
export interface UseSelectReturn extends select.Api {
}
export declare const useSelect: (props: UseSelectProps) => UseSelectReturn;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy