+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "Segment" keywords = ["grafana","documentation","sdk","@grafana/ui"] type = "docs" +++ ## Segment() function ### Segment() function Signature ```typescript export declare function Segment({ options, value, onChange, Component, className, allowCustomValue, placeholder, }: React.PropsWithChildren>): JSX.Element; ``` Import ```typescript import { Segment } from '@grafana/ui'; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | { options, value, onChange, Component, className, allowCustomValue, placeholder, } | React.PropsWithChildren<SegmentSyncProps<T>> | | Returns: `JSX.Element`