@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
20 lines • 514 B
JavaScript
import { forwardRef } from "react";
import classNames from "classnames";
import { jsx as _jsx } from "react/jsx-runtime";
const ContainerBreakpoint = /*#__PURE__*/forwardRef(({
className,
from,
to,
...props
}, ref) => {
return /*#__PURE__*/_jsx("div", {
...props,
className: classNames(className, {
[`from-${from}-container`]: from,
[`to-${to}-container`]: to
}),
ref: ref
});
});
ContainerBreakpoint.displayName = "Container.Breakpoint";
export default ContainerBreakpoint;