API Reference@grafana/ui › Segment

Segment() function

Segment() function

Signature

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

Import

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

Parameters

Parameter Type Description
{ options, value, onChange, Component, className, allowCustomValue, placeholder, } React.PropsWithChildren<SegmentSyncProps<T>>

Returns:

JSX.Element