API Reference > ui-components > Viewport > ViewportProps ViewportProps Interface Properties for ViewportComponent component. Extends CommonProps Methods Name Description getViewOverlay(viewport: ScreenViewport): ReactNode Optional onContextMenu(e: MouseEvent<Element, MouseEvent>): boolean Optional viewportRef(v: ScreenViewport): void Optional Function to get a reference to the ScreenViewport Properties Name Type Description imodel IModelConnection IModel to display viewDefinitionId undefined | string Id of a default view definition to load as a starting point viewState undefined | ViewStateProp ViewState to use as a starting point Inherited properties Name Type Inherited from Description className undefined | string CommonProps Custom CSS class name style undefined | CSSProperties CommonProps Custom CSS style properties Defined in ui/components/src/ui-components/viewport/ViewportComponent.tsx Line 34 Last Updated: 12 June, 2024