Battery Face
Battery Face: Battery level as a character — arc ring, percentage, hours left, and a face that actually looks sad when you're running low. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Battery Face
npx motion-ui-skill add battery-faceComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactreacttailwind-merge
Source files
Battery Face
Battery level as a character — arc ring, percentage, hours left, and a face that actually looks sad when you're running low.
Install
npx motion-ui-skill add battery-face
Dependencies
clsxlucide-reactreacttailwind-merge
Usage
"use client";
import { BatteryFaceWidget } from "@/components/widgets/battery-face-widget";
export function BatteryFaceWidgetDemo() {
return (
<div className="flex items-center justify-center p-6">
<BatteryFaceWidget />
</div>
);
}
API Reference
BatteryFaceWidget
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |