Time saved sectionHours Toggle Features

Time saved section: a switch in the headline flips a real week of work between by hand and with your product.

Features

  • A two-sided switch set inside the headline: by hand, or with your product
  • A week's calendar of real tasks under it
  • Flipping the switch shrinks each task to what is left, or clears it when nothing is
  • The week's total rolls from one figure to the other
  • Labels never squash: only the block behind them scales

Best for: Automation, bookkeeping and workflow products that save people time and want to show how much.

Installation

npm install motion clsx tailwind-merge

Then copy the files from the Code tab into the same paths in your project, in TypeScript or JavaScript.

Props

PropTypeDefaultDescription
leadstring-The headline's opening words, before the switch.
options[string, string]-The switch's two sides: now, and with your product.
subtitleReactNode-One grey line under the headline.
daysstring[]-The calendar's day columns.
hoursstring[]-The calendar's hour labels, top to bottom.
tasksWeekTask[]-id, day, start, byHand and withTool (or null).
classNamestring-Extra classes for the section.

FAQ

Is the Hours Toggle Features free to use?

Yes. Hours Toggle Features is free to copy into your own projects. Open the Code tab and paste the files into your app.

Does Hours Toggle Features work with Next.js and React?

Yes. It's a React client component made for the Next.js App Router, styled with Tailwind CSS and animated with Framer Motion (the motion package).

Can I use Hours Toggle Features in JavaScript instead of TypeScript?

Yes. Every file comes in TypeScript and JavaScript. Switch the language in the Code tab.

What does Hours Toggle Features need installed?

motion, clsx, tailwind-merge, plus the shared helpers from the Installation page.

Is Hours Toggle Features accessible?

Every link and button is reachable by keyboard with a visible focus ring, and the animation stays still for visitors who ask for reduced motion.