-
Notifications
You must be signed in to change notification settings - Fork 2
/
Popup.tsx
31 lines (28 loc) · 1023 Bytes
/
Popup.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module StatusBar
*/
import "./Popup.scss";
import * as React from "react";
import classnames from "classnames";
import type { PopupProps } from "@itwin/core-react";
import { Popup } from "@itwin/core-react";
import { RelativePosition } from "@itwin/appui-abstract";
/** Popup component used in [[StatusBar]] component.
* @beta
*/
export function StatusBarPopup(props: Partial<PopupProps>) {
const { className, offset, ...other } = props;
return (
<Popup
className={classnames("nz-status-bar-popup", className)}
position={RelativePosition.Top}
showShadow={true}
{...other}
showArrow={false}
/>
);
}