@arolariu/components
Version:
🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡
14 lines (13 loc) • 392 B
JavaScript
"use client";
import { jsx } from "react/jsx-runtime";
import { AnimatePresence } from "motion/react";
import "react";
function Presence({ present, children, mode = "sync" }) {
return /*#__PURE__*/ jsx(AnimatePresence, {
mode: mode,
children: present ? children : null
});
}
Presence.displayName = "Presence";
export { Presence };
//# sourceMappingURL=Presence.js.map