Copies finished React + Tailwind parts into a project - charts, dashboard, kanban, sortable list, calendar, CSV import, infinite list, login, register, OTP and reset pages, profile, settings, dark mode, languages and RTL, autosave, unsaved-changes warning, notifications, realtime, idle logout. Use before writing any of these.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Frontend Blocks?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/pandi2352-frontend-blocks)
---
name: frontend-blocks
description: Copies finished React + Tailwind parts into a project - charts, dashboard, kanban, sortable list, calendar, CSV import, infinite list, login, register, OTP and reset pages, profile, settings, dark mode, languages and RTL, autosave, unsaved-changes warning, notifications, realtime, idle logout. Use before writing any of these.
---
# Frontend blocks
Copy with the script; do not open or retype `assets/`. Add a block only when the
project needs it.
A project with `docs/steps.json`: use `steps.mjs <project> build <part>` of `frontend-core`
(it brings everything the part needs and connects it). Other projects:
```
node <skill>/scripts/add.mjs --list
node <skill>/scripts/add.mjs <project> charts kanban
```
It also copies the blocks these need, adds paths to `config/routes.ts`, and prints
the packages and the next steps. It never overwrites a file and stops when
`frontend-core`, `frontend-api` or `frontend-performance` code is missing; add that
first, or ask if the project has its own components.
| Block | For |
| --- | --- |
| `charts` | change over time, comparison, shares, ranking |
| `dashboard` | numbers, charts and recent rows with one period filter |
| `drag-sort`, `kanban` | order by hand; cards in columns |
| `calendar` | events by day |
| `csv-import` | many records from a file |
| `infinite-list` | endless feed or log |
| `auth-pages` | login, register, code, forgot, reset, change password |
| `account-pages` | profile, settings |
| `dark-mode`, `i18n` | themes, languages and direction |
| `unsaved-changes`, `autosave` | forms that must not lose work |
| `notifications`, `realtime` | bell and page; live updates |
| `idle-logout` | sign out after inactivity |
List, details, create and edit pages of your own data are written by the generator
of `frontend-core`: `scripts/generate.mjs feature orders --fields "…"`.
## Steps
1. Pick the block. If two fit, ask.
2. Add it, install the printed packages with `resolve-versions.mjs`, follow the
printed next steps.
3. Adapt only services (`*.service.ts`), texts (`…Text` objects) and config. If the
real API differs, translate in the service, not in the pages.
4. Read the part you need: `references/page-recipes.md` (list, detail, form, wizard,
settings, report, inbox, approval queue), `references/data.md` (charts, kanban, calendar, import,
lists) or `references/features.md` (everything else).
5. `node scripts/verify.mjs`. Say which endpoints are assumed.
## Rules
- Never leave sample numbers in a page. No data yet: the empty state.
- Charts follow the rules in `data.md`; never two y-axes.
- Optimistic moves and switches must undo when saving fails.
- Hiding a page is not security. The server checks every request.
- Password, code and session rules belong to the server; the pages only help.