Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Segment() function
Segment() function
Signature
export declare function Segment<T>({ options, value, onChange, Component, className, allowCustomValue, placeholder, disabled, ...rest }: React.PropsWithChildren<SegmentSyncProps<T>>): JSX.Element;
Import
import { Segment } from '@grafana/ui';
Parameters
Parameter | Type | Description |
---|---|---|
{ options, value, onChange, Component, className, allowCustomValue, placeholder, disabled, …rest } | React.PropsWithChildren<SegmentSyncProps<T>> |
Returns:
JSX.Element