OdysseyUI

Pricing 1

Modern pricing grid with animated sliding numbers, yearly billing toggle, and featured plan corner decorations.

Loading...

Installation

Usage

import Pricing1 from '@/components/odysseyui/pricing-1';

export default function Page() {
  return <Pricing1 />;
}

Note: This component is inspired from Efferd.

How It Works

  • Uses motion/react springs and react-use-measure to animate individual digit slots in the SlidingNumber component, so price transitions feel physical and smooth when toggling billing period.
  • A custom BillingToggle switch (role="switch") controls the yearly state, which swaps each plan's monthly vs yearly price.
  • The featured column receives CornerPlus SVG decorations at its four corners, rendered via translate offsets on the shared border grid.
  • Feature check icons use @hugeicons/react (CheckmarkBadge01Icon).

API Reference

Pricing1

PropTypeDefault
plans?
Plan[]
DEFAULT_PLANS

Plan

PropTypeDefault
id?
string
-
name?
string
-
desc?
string
-
credits?
string
-
monthly?
number
-
yearly?
number
-
cta?
string
-
featured?
boolean
-
features?
string[]
-

Built by Shr3kx & iam-sahil. The source code is available on GitHub.

Last updated: 3/27/2026