package.dist.components.fieldset.use-fieldset.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 { HTMLProps } from '../factory';
import { RefObject } from 'react';
export interface UseFieldsetProps {
/**
* The id of the fieldset.
*/
id?: string;
/**
* Indicates whether the fieldset is disabled.
*/
disabled?: boolean;
/**
* Indicates whether the fieldset is invalid.
*/
invalid?: boolean;
}
export type UseFieldsetReturn = ReturnType;
export declare const useFieldset: (props: UseFieldsetProps) => {
refs: {
rootRef: RefObject;
};
disabled: boolean;
invalid: boolean;
getRootProps: () => HTMLProps<"fieldset">;
getLegendProps: () => HTMLProps<"legend">;
getHelperTextProps: () => HTMLProps<"span">;
getErrorTextProps: () => HTMLProps<"span">;
};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy