UNPKG

@grafana/ui

Version:
13 lines (12 loc) 522 B
import React from 'react'; import { SelectableValue } from '@grafana/data'; export interface Props<T> { value?: SelectableValue<T>; options: Array<SelectableValue<T>>; onChange: (item: SelectableValue<T>) => void; onClickOutside: () => void; width: number; noOptionsMessage?: string; allowCustomValue?: boolean; } export declare function SegmentSelect<T>({ value, options, onChange, onClickOutside, width, noOptionsMessage, allowCustomValue, }: React.PropsWithChildren<Props<T>>): JSX.Element;