
package.dist.components.fieldset.use-fieldset.d.cts Maven / Gradle / Ivy
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