@grafana/ui
Version:
Grafana Components Library
12 lines (11 loc) • 704 B
TypeScript
import { HTMLProps } from 'react';
import * as React from 'react';
import { SegmentProps } from './types';
export interface SegmentInputProps extends Omit<SegmentProps, 'allowCustomValue' | 'allowEmptyValue'>, Omit<HTMLProps<HTMLInputElement>, 'value' | 'onChange'> {
value: string | number;
onChange: (text: string | number) => void;
}
/**
* https://developers.grafana.com/ui/latest/index.html?path=/docs/inputs-segmentinput--docs
*/
export declare function SegmentInput({ value: initialValue, onChange, Component, className, placeholder, inputPlaceholder, disabled, autofocus, onExpandedChange, ...rest }: React.PropsWithChildren<SegmentInputProps>): import("react/jsx-runtime").JSX.Element;