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

package.dist.components.fieldset.use-fieldset.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 { 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