
package.dist.components.toggle-group.use-toggle-group.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of react Show documentation
Show all versions of react Show documentation
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 * as toggleGroup from '@zag-js/toggle-group';
export interface UseToggleGroupProps extends Optional, 'id'> {
/**
* The initial value of the toggle group when it is first rendered.
* Use when you do not need to control the state of the toggle group.
*/
defaultValue?: toggleGroup.Context['value'];
}
export interface UseToggleGroupReturn extends toggleGroup.Api {
}
export declare const useToggleGroup: (props?: UseToggleGroupProps) => UseToggleGroupReturn;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy