Supercharge Your UI with Mantine Clock: The Ultimate Timekeeping Extension for Mantine
Real-Time Clocks, Timezone Support, and Customization—All Seamlessly Integrated with Mantine UI
In the world of React UI development, Mantine is a top choice for building beautiful, accessible, and highly customizable interfaces. But what if you need advanced timekeeping features—like real-time clocks, timezone displays, or countdown logic—without leaving the Mantine ecosystem? Enter Mantine Clock, a powerful extension that brings professional-grade clock components and hooks to your NextJS and Typescript projects.
Why Mantine Extensions?
If you’re already using the Mantine UI Library (official docs ↗), you know it’s all about developer experience, accessibility, and design consistency. But Mantine’s real power comes from its extension ecosystem, available through the Mantine Extensions Hub ↗. Here, you’ll find community-driven solutions like Mantine Clock, which solve real-world UI needs while staying true to Mantine’s design language.
What is Mantine clock?
Mantine Clock is a React package that provides highly customizable clock components and hooks, designed to integrate natively with Mantine’s design system. Whether you want a classic analog clock, a digital display, or need to handle timezones and countdowns, Mantine Clock has you covered—with full support for Mantine theming and responsive layouts.
Key Features
Analog & Digital Clocks: Render beautiful, theme-aware clocks that fit your app’s style.
Timezone Support: Display accurate time for any region—ideal for global apps.
Real-Time Updates: Clocks update live, so your users always see the correct time.
Customization: Style hands, ticks, numbers, and colors to match your brand.
Mantine Native: Seamlessly blends with Mantine’s color schemes and dark mode.
Typescript Ready: Built for type safety and autocompletion.
Countdown & Timer Hooks: Use hooks to implement countdowns and timers with full control.
Getting Started
1. Install the Package
Add Mantine Clock to your project with yarn or npm:
yarn add @gfazioli/mantine-clock
# or
npm install @gfazioli/mantine-clock
After installation, import the package styles at the root of your application:
import '@gfazioli/mantine-clock/styles.css';
For advanced CSS layering, you can also import:
import '@gfazioli/mantine-clock/styles.layer.css';
2. Basic Usage
The main Clock
component is easy to use in any Mantine layout:
import { Clock } from '@gfazioli/mantine-clock';
export function MyDashboard() {
return (
<Clock
size={200}
color="blue"
timezone="America/New_York"
showSeconds
/>
);
}
You can further customize the appearance by adjusting props for hour/minute/second hands, tick marks, and number styles. The component is fully theme-aware, adapting to your Mantine color scheme and dark mode settings.
3. Advanced: Real-Time and Countdown Logic with Hooks
Need a countdown for a product launch or event? Mantine Clock provides hooks like useCountdown
and useClock
to help you build custom logic with full Typescript support:
import { useCountdown } from '@gfazioli/mantine-clock';
export function LaunchCountdown() {
const { days, hours, minutes, seconds, isCompleted } = useCountdown({
targetDate: new Date('2025-09-01T12:00:00Z'),
});
if (isCompleted) {
return <span>Launched!</span>;
}
return (
<span>
{days}d {hours}h {minutes}m {seconds}s
</span>
);
}
You can use these hooks to create your own countdown or timer components, giving you full flexibility and control.
Why Choose Mantine Clock?
Seamless Mantine Integration
Mantine Clock is designed specifically for Mantine’s design language. You get:
Consistent look and feel across your UI
Responsive and accessible components
Effortless integration with Mantine’s theming and color modes
Built for NextJS & Typescript
Whether you’re building a static site or a dynamic dashboard, Mantine Clock is optimized for server-side rendering and type safety. Enjoy autocompletion and reliable prop types out of the box.
Community-Driven and Actively Maintained
Mantine Clock is part of the vibrant Mantine Extensions Hub (see more extensions ↗), ensuring you’re using components that are open-source, actively developed, and trusted by the community.
Real-World Use Cases
Dashboards: Show local and global times for distributed teams.
Event Pages: Add countdowns for launches, webinars, or deadlines.
Productivity Tools: Integrate timers and clocks into your workflow apps.
Educational Platforms: Teach time concepts interactively.
Final Thoughts
If you’re already leveraging Mantine for your React projects, Mantine Clock is a must-have extension. It brings professional-grade timekeeping, stunning visuals, and seamless integration—all with the reliability and polish you expect from the Mantine ecosystem.