UNPKG

@atlaskit/page-header

Version:

A page header defines the top of a page. It contains a title and can be optionally combined with breadcrumbs buttons, search, and filters.

25 lines • 1.08 kB
/* title-container.tsx generated by @compiled/babel-plugin v3.0.2 */ // TODO: Remove this eslint-disable when prop names have been renamed. // This rule is here as prop name changes are a major as they are used // by our consumers. The prop name concerned here is truncateTitle. // This can be done in the next lite-mode conversion. /* eslint-disable @repo/internal/react/boolean-prop-naming-convention */ import "./title-container.compiled.css"; import * as React from 'react'; import { ax, ix } from "@compiled/react/runtime"; var titleContainerStyles = null; var titleContainerTruncateStyles = null; /** * Title container. * * A title container is a container that wraps around the title and its styles (if applied). * */ var TitleContainer = function TitleContainer(_ref) { var children = _ref.children, truncateTitle = _ref.truncateTitle; return /*#__PURE__*/React.createElement("div", { className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug _1ul9idpf _p12f1osq _6rthu2gc _1i4q1hna", truncateTitle && "_1o9zkb7n"]) }, children); }; export default TitleContainer;