---
title: "Sleep Score | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/sleep-score"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/widgets/sleep-score-widget.tsx"
install_command: "npx motion-ui-skill add sleep-score"
dependencies: ["clsx","lucide-react","react","tailwind-merge"]
category: "craft"
subcategory: "widgets"
---

# Sleep Score

> Sleep score in the DND face layout — sleeping mascot at the bottom, score and quality above, duration tucked below.

## Install

```bash
npx motion-ui-skill add sleep-score
```

## Dependencies

- `clsx`
- `lucide-react`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { SleepScoreWidget } from "@/components/widgets/sleep-score-widget";

export function SleepScoreWidgetDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <SleepScoreWidget />
    </div>
  );
}
```

## API Reference

### SleepScoreWidget

| Prop | Type | Default | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| `className` | `string` | — | No | Additional CSS classes |

## Source Files

- [components/widgets/sleep-score-widget.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/widgets/sleep-score-widget.tsx)
- [lib/cn.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/cn.ts)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
