Skip to content

Instantly share code, notes, and snippets.

View ditorodev's full-sized avatar
🏠
Working from home

Juan Di Toro ditorodev

🏠
Working from home
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import { AnimatePresence, motion } from "motion/react";
import { useRef, useState } from "react";
type TabValue = "free" | "monthly" | "yearly";
export default function App() {
const [value, setValue] = useState<TabValue>("free");
const code = `
// Wrap the Tab component in a div to control its dimensions
<div className="w-[500px] h-14">