@itwin/core-react
Version:
A react component library of iTwin.js UI general purpose components
20 lines • 1.02 kB
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Base
*/
import * as React from "react";
import { Div } from "./Div.js";
/** Centered React functional component.
* Displays content centered vertically and horizontally.
* @public
* @deprecated in 4.12.0. Use CSS to style an element or {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead, i.e. `<Flex justifyContent="center" />`.
*/
// eslint-disable-next-line @typescript-eslint/no-deprecated
export function Centered(props) {
// eslint-disable-next-line @typescript-eslint/no-deprecated
return React.createElement(Div, { ...props, mainClassName: "uicore-centered" });
}
//# sourceMappingURL=Centered.js.map