ブロック一覧へ戻る

これは何か
月額/年額の切替で価格が桁ごとにロールする3プランの料金セクション。中央プランを強調し、機能リストは一度だけフェードイン。
TSX の全文です。アカウントは不要です。
billing-toggle-pricing.tsx
"use client"; import { useEffect, useRef, useState, type KeyboardEvent } from "react";import { AnimatePresence, motion, useReducedMotion } from "motion/react";import { Check, Layers, Sprout, Users, type LucideIcon } from "lucide-react";import { cn } from "@/lib/utils"; export type BillingToggleCycle = "monthly" | "yearly";ガイドを読む
Verified Technical Spec
- アニメーション
- Framer Motion
- Reduced motion
- 確認済み
- キーボードフォーカス
- 確認済み
- 対応環境
- Tailwind CSS v3.4 + v4 · React 19 / Next.js 15 App Router + Vite / Remix 対応
含まれるもの
- ソースを Cursor / Claude に渡してエージェントに組み込める
- スマートフォン・タブレット・パソコン対応
- React · TypeScript · Tailwind CSS · Motion · Lucide の完成 UI
依存パッケージ
- React 19.0.0
- Typescript 5.7.2
- Tailwindcss 3.4.16
- Lucide-react 1.23.0
- Motion 12.42.2
技術スタック
- React
- TypeScript
- Tailwind CSS
- Motion
- Lucide
バージョン 1.0.0





