Dev Helpers
← Back

Milestone billing schedule

Import and render <MilestoneBillingSchedule /> in a React project.

Open this example in the interactive library

Live preview

Source code

// components/MilestoneBillingSchedule.tsx

export default function MilestoneBillingSchedule({
  hours = 8,
  rate = 60,
}: { hours?: number; rate?: number } = {}) {
  return (
    <ol>
      {[0.2, 0.3, 0.5].map((share, i) => (
        <li key={i}>
          Phase {i + 1}: {(hours * rate * share).toFixed(2)}
        </li>
      ))}
    </ol>
  );
}