All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.cjs.components.show.show.cjs Maven / Gradle / Ivy

Go to download

Responsive and accessible React UI components built with React and Emotion

The newest version!
"use strict";
'use strict';

var jsxRuntime = require('react/jsx-runtime');
var React = require('react');

function Show(props) {
  const { when, fallback, children } = props;
  let result;
  if (!when) {
    result = fallback;
  } else {
    result = typeof children === "function" ? children(when) : children;
  }
  return React.isValidElement(result) ? result : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: result });
}

exports.Show = Show;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy