+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "ModalsProvider" keywords = ["grafana","documentation","sdk","@grafana/ui"] type = "docs" +++ ## ModalsProvider class Signature ```typescript export declare class ModalsProvider extends React.Component ``` Import ```typescript import { ModalsProvider } from '@grafana/ui'; ``` Constructors | Constructor | Modifiers | Description | | --- | --- | --- | | [constructor(props)](#constructor-props) | | Constructs a new instance of the ModalsProvider class | Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [hideModal](#hidemodal-property) | | () => void | | | [showModal](#showmodal-property) | | (component: React.ComponentType<any>, props: any) => void | | Methods | Method | Modifiers | Description | | --- | --- | --- | | [render()](#render-method) | | | ### constructor(props) Constructs a new instance of the `ModalsProvider` class Signature ```typescript constructor(props: ModalsProviderProps); ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | props | ModalsProviderProps | | ### hideModal property Signature ```typescript hideModal: () => void; ``` ### showModal property Signature ```typescript showModal: (component: React.ComponentType, props: any) => void; ``` ### render method Signature ```typescript render(): JSX.Element; ``` Returns: `JSX.Element`