time-grid-cells
v0.0.6
Published
A React component for displaying time grid cells
Downloads
16
Readme
This project helps users visualize their time allocation through intuitive grids: ✨ Life View: Interactive age grid (up to 80 years) with animated water ripple showing current year's progress percentage 📅 Nested Time Perspectives: Year/Month/Week/Day views with similar visualization patterns 🎯 Core Purpose: Promote time consciousness using fading color schemes (gray for past, green for future) to prioritize meaningful matters
Installation
Using pnpm (recommended):
pnpm add time-grid-cellsTypeScript Interface
type TimeUnit = 'year' | 'month' | 'day' | 'hour';
interface TimeGridCellsProps {
lifeExpectancy: number;
currentYear: number;
birthDate: string;
isEditing: boolean;
maxValue: number;
unit: TimeUnit;
}Usage
import TimeGridCells from 'time-grid-cells';
<TimeGridCells
lifeExpectancy={lifeExpectancy}
currentYear={currentYear}
birthDate={birthDate}
isEditing={isEditing}
maxValue={tempLifeExpectancy!}
unit="year"
/>Style
This package automatically imports the required style files, no need to manually import CSS.
Official Demo Site
https://www.5minutetimer.app/time-account
Contributing
We welcome contributions! Please see our contributing guidelines for details.
License
MIT
