UNPKG

@coreui/react

Version:

UI Components Library for React.js

45 lines (44 loc) 1.25 kB
import React, { ChangeEventHandler, InputHTMLAttributes, ReactNode } from 'react'; export interface CFormRangeProps extends InputHTMLAttributes<HTMLInputElement> { /** * A string of all className you want applied to the component. */ className?: string; /** * Toggle the disabled state for the component. */ disabled?: boolean; /** * Add a caption for a component. * * @since 4.2.0 */ label?: ReactNode | string; /** * Specifies the maximum value for the component. */ max?: number; /** * Specifies the minimum value for the component. */ min?: number; /** * Method called immediately after the `value` prop changes. */ onChange?: ChangeEventHandler<HTMLInputElement>; /** * Toggle the readonly state for the component. */ readOnly?: boolean; /** * Specifies the interval between legal numbers in the component. */ step?: number; /** * The `value` attribute of component. * * @controllable onChange * */ value?: string | string[] | number; } export declare const CFormRange: React.ForwardRefExoticComponent<CFormRangeProps & React.RefAttributes<HTMLInputElement>>;