Segment() function

Segment() function

Signature

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

Import

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

Parameters

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

Returns:

JSX.Element