Segment() function

Segment() function

Signature

  1. export declare function Segment<T>({ options, value, onChange, Component, className, allowCustomValue, allowEmptyValue, placeholder, disabled, inputMinWidth, inputPlaceholder, onExpandedChange, autofocus, ...rest }: React.PropsWithChildren<SegmentSyncProps<T>>): JSX.Element;

Import

  1. import { Segment } from '@grafana/ui';

Parameters

ParameterTypeDescription
{ options, value, onChange, Component, className, allowCustomValue, allowEmptyValue, placeholder, disabled, inputMinWidth, inputPlaceholder, onExpandedChange, autofocus, …rest }React.PropsWithChildren<SegmentSyncProps<T>>

Returns:

JSX.Element