uitripled/components/builder/text-editing-banner.tsx
Moumen Soliman 9ee2f7530a
V1/release 16 Dec 2025 (#4)
* v1 prepration

* Fix baseui tooltip components

* Update native-liquid-button.tsx

* Resumes fix

* Add uitripled CLI package and update install tabs

Introduces a new uitripled CLI package for installing animated UI components, including CLI source, documentation, and publish script. Updates the AnimationDetailPage to feature install instructions for both shadcn and uitripled, replacing the previous npx/yarn/pnpm tabs with shadcn/uitripled options and corresponding copy-to-clipboard functionality.

* update package release

* Update package.json

* Hotfix
2025-12-16 02:52:02 +02:00

25 lines
695 B
TypeScript

"use client";
import { AnimatePresence, motion } from "framer-motion";
type TextEditingBannerProps = {
show: boolean;
};
export function TextEditingBanner({ show }: TextEditingBannerProps) {
return (
<AnimatePresence>
{show && (
<motion.div
initial={{ opacity: 0, y: -10 }}
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: -10 }}
className="mx-4 mb-4 rounded-md border border-primary/30 bg-primary/10 p-3 text-sm text-primary"
>
Text editing mode enabled. Click highlighted text to edit. Dragging is
disabled while this mode is active.
</motion.div>
)}
</AnimatePresence>
);
}