@stihl-design-system/components
Version:
Welcome to the STIHL Design System react component library.
14 lines (13 loc) • 874 B
TypeScript
import { InputNumberProps } from './InputNumber';
type ValidationProps = Pick<InputNumberProps, 'id' | 'label' | 'prefix' | 'suffix' | 'hideLabel' | 'popoverContent'>;
export declare const isValidValue: (value: string | number | readonly string[] | undefined | null) => boolean;
/**
* Validates the given properties of the DSInputNumber component for common configuration errors.
* This function is intended to be used in development mode to provide developers with
* warnings about potential misuse of the component.
*
* @param validationProps - The subset of DSInputNumber properties to validate. This includes
* properties related to the prefix, suffix, icons and action button of the input.
*/
export declare const validateInputNumberProps: ({ id, label, prefix, suffix, hideLabel, popoverContent, }: ValidationProps) => void;
export {};