UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

22 lines (21 loc) 760 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { forwardRef } from "react"; import classNames from "classnames"; import BoxArrow from "../Box/Box.Arrow.js"; const SectionHeader = /*#__PURE__*/ forwardRef(({ children, className, arrow = false, noPadding = false, ...props }, ref)=>{ return /*#__PURE__*/ _jsxs("div", { ...props, className: classNames("bf-section-header", className, { "bf-no-padding": noPadding }), ref: ref, children: [ /*#__PURE__*/ _jsx("div", { children: children }), arrow && /*#__PURE__*/ _jsx(BoxArrow, {}) ] }); }); SectionHeader.displayName = "Section.Header"; export default SectionHeader;