@playbooks/ui
Version:
An interface library for Playbooks.
13 lines (12 loc) • 436 B
JavaScript
import { jsx } from "react/jsx-runtime";
import { useUI } from "./context.es.js";
import { Div } from "./html.es.js";
const Animation = ({ name = "Animation", tailwind, className, children, ...props }) => {
const context = useUI();
const base = context?.theme?.animation();
const computed = { ...base, ...props, tailwind, className, name };
return /* @__PURE__ */ jsx(Div, { ...computed, children });
};
export {
Animation
};