+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "Switch" keywords = ["grafana","documentation","sdk","@grafana/ui"] type = "docs" draft = true +++ ## Switch class Signature ```typescript export declare class Switch extends PureComponent ``` Import ```typescript import { Switch } from '@grafana/ui'; ``` Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [internalOnChange](#internalonchange-property) | | (event: React.FormEvent<HTMLInputElement>) => void | | | [state](#state-property) | | {
id: string;
} | | Methods | Method | Modifiers | Description | | --- | --- | --- | | [render()](#render-method) | | | ### internalOnChange property Signature ```typescript internalOnChange: (event: React.FormEvent) => void; ``` ### state property Signature ```typescript state: { id: string; }; ``` ### render method Signature ```typescript render(): JSX.Element; ``` Returns: `JSX.Element`