UNPKG

bereact-ui

Version:

Bibliothèque de composants React open-source

20 lines (19 loc) 712 B
import { j as p } from "./jsx-runtime-foPj8jHJ.js"; function y({ text: o, fontFamily: x, color: l, variation: t, hueColor: e, delay: r, jumpHeight: a, animationTime: c, fontSize: m }) { const u = e || 10, i = [...o].map((n, s) => { const j = { "--i": s + 1, "--delay": r ? `${r}s` : "0.1s", "--jumpHeight": a ? `-${a}px` : "-10px", "--animationTime": c ? `${c}s` : "1s", fontFamily: x, fontSize: m, color: t ? `hsl(${u + t * s % 360}, 100%, 50%)` : l }; return /* @__PURE__ */ p.jsx("span", { style: j, children: n === " " ? " " : n }, s); }); return /* @__PURE__ */ p.jsx("div", { className: "bereact_ui_wavy", children: i }); } export { y as W };