UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

17 lines (16 loc) 507 B
import { jsx as _jsx } from "react/jsx-runtime"; /** Render a `<div>` that will only be displayed for certain screen sizes: * `small` = 600px, * `medium` = 960px, * `large` = 1280px, * `xl` = 1600px, * `xxl` = 1920px */ export default function Breakpoint({ children, from, to }) { const classes = []; if (from) classes.push("from-" + from); if (to) classes.push("to-" + to); return /*#__PURE__*/ _jsx("div", { className: classes.join(" "), children: children }); }