@base-ui/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
10 lines • 727 B
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps, NativeButtonProps } from "../../internals/types.js";
import type { NumberFieldRootState } from "./NumberFieldRoot.js";
type StepperButtonProps = NativeButtonProps & BaseUIComponentProps<'button', NumberFieldRootState>;
/**
* Shared implementation for the increment and decrement stepper buttons. They differ only in the
* direction they step and the boundary (`max` vs `min`) at which they become disabled.
*/
export declare function useNumberFieldStepperButton(componentProps: StepperButtonProps, forwardedRef: React.ForwardedRef<HTMLButtonElement>, isIncrement: boolean): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
export {};