Productivity Widget
Focus tools — a pomodoro timer, a habit-streak card, a time-allocation ring panel, and a day planner.
Preview
@props([])
@php
$stats = [
['label' => 'Time', 'value' => '6h'],
['label' => 'Tasks', 'value' => '55'],
['label' => 'Work day', 'value' => '79%'],
];
$rings = [
['label' => 'Focus', 'value' => 62],
['label' => 'Meetings', 'value' => 22],
['label' => 'Breaks', 'value' => 10],
['label' => 'Others', 'value' => 6],
];
@endphp
<x-ui.card class="w-full max-w-md flex flex-col">
<div class="flex flex-col gap-4 p-6">
<div class="grid grid-cols-3 gap-4">
@foreach ($stats as $stat)
<div class="flex flex-col items-center gap-2">
<p class="text-sm text-muted-foreground">{{ __($stat['label']) }}</p>
<p class="text-2xl font-semibold text-foreground">{{ $stat['value'] }}</p>
</div>
@endforeach
</div>
<x-ui.separator />
<div class="grid grid-cols-4 gap-4">
@foreach ($rings as $ring)
<div class="flex flex-col items-center gap-2">
<x-ui.circular-progress :value="$ring['value']" :size="56" :show-value="false" />
<p class="text-xs text-muted-foreground">{{ __($ring['label']) }}</p>
</div>
@endforeach
</div>
</div>
</x-ui.card>
Installation
php artisan ui:add blocks/productivity-widget-focus
Registry contract
Install confidence
php artisan ui:add blocks/productivity-widget-focus
writes only the generated targets below. The CLI validates each file hash before writing and
prompts before replacing local changes unless --force is used.
- Version
- 1.0.3
- License
- open
- Stability
- stable
- Contract
- v1
- Foundation
- ≥ 1.0.0
| Type | Generated target |
|---|---|
| blade | resources/views/blocks/productivity-widget-focus.blade.php |
Registry dependencies
Package dependencies
composer: jml/brok:^0.2
Use with AI
A brief for your coding agent: what the block is, the install command, how to render it, its props and the rules. Copy it, or open a prompt about this block in an assistant.
# Brok UI block: Productivity Widget Focus (`productivity-widget-focus`)
A focus-breakdown widget with a stats row and four labelled circular-progress rings for time allocation.
Brok UI is a Laravel Blade registry. `ui:add` copies this block into the app as plain Blade the app owns; it composes installed `<brok:*>` primitives and semantic design tokens.
## Install
```bash
php artisan ui:add blocks/productivity-widget-focus
```
## Render it
```blade
<x-blocks.productivity-widget-focus />
```
## Use when
- Showing a productivity summary card with a three-stat row (time, tasks, work day %) and four labelled circular-progress rings breaking down time allocation.
- Use when you need a static, read-only visual summary rather than an interactive timer or checklist.
## Avoid when
- Needing an interactive countdown timer or a task checklist rather than a static stats summary; use productivity-widget-pomodoro or productivity-widget-planner instead.
## Rules
- Render the installed block with `<x-blocks.productivity-widget-focus />` and pass data through its props; edit the copied file only for structural changes.
- Keep the semantic design tokens (`bg-background`, `text-muted-foreground`); never swap in raw colour utilities.
- Keep the `data-slot` attributes and the logical (start/end) spacing so the markup still mirrors under `dir="rtl"`.
## Links
- Docs: https://brokui.dev/blocks/productivity-widget-focus
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/productivity-widget-focus.json
Working in Claude Code, Cursor or Codex? Give the agent the whole registry through the MCP server or the Brok UI skill.
Guidance
Use when
- Showing a productivity summary card with a three-stat row (time, tasks, work day %) and four labelled circular-progress rings breaking down time allocation.
- Use when you need a static, read-only visual summary rather than an interactive timer or checklist.
Avoid when
- Needing an interactive countdown timer or a task checklist rather than a static stats summary; use productivity-widget-pomodoro or productivity-widget-planner instead.
Anti-patterns
- Do not replace semantic props with conflicting utility classes.
- Do not remove labels, focus styles, or state attributes.
- Anatomy
Usage
Render the block as a component, passing data where useful:
<x-blocks.productivity-widget-focus />
Built from primitives
This block composes installed <brok:*> primitives and semantic design
tokens only — it does not reimplement any primitive. Re-theme it (light, dark, admin, customer) by
editing CSS variables; flip the preview to RTL to confirm it mirrors.
Source
The exact, editable file ui:add writes
into your app. The preview above renders this same source — there are no preview-only blocks.
@props([])
@php
$stats = [
['label' => 'Time', 'value' => '6h'],
['label' => 'Tasks', 'value' => '55'],
['label' => 'Work day', 'value' => '79%'],
];
$rings = [
['label' => 'Focus', 'value' => 62],
['label' => 'Meetings', 'value' => 22],
['label' => 'Breaks', 'value' => 10],
['label' => 'Others', 'value' => 6],
];
@endphp
<x-ui.card class="w-full max-w-md flex flex-col">
<div class="flex flex-col gap-4 p-6">
<div class="grid grid-cols-3 gap-4">
@foreach ($stats as $stat)
<div class="flex flex-col items-center gap-2">
<p class="text-sm text-muted-foreground">{{ __($stat['label']) }}</p>
<p class="text-2xl font-semibold text-foreground">{{ $stat['value'] }}</p>
</div>
@endforeach
</div>
<x-ui.separator />
<div class="grid grid-cols-4 gap-4">
@foreach ($rings as $ring)
<div class="flex flex-col items-center gap-2">
<x-ui.circular-progress :value="$ring['value']" :size="56" :show-value="false" />
<p class="text-xs text-muted-foreground">{{ __($ring['label']) }}</p>
</div>
@endforeach
</div>
</div>
</x-ui.card>
Ownership & lifecycle
Owner, release state, review evidence and adoption for this item.
- Owner
- Platform UI (@JoshJML)
- Current version
-
1.0.3 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0