nextjs-client-cookie-pattern
CommunityClient + server action pattern for cookies.
Authormcclowes
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This pattern shows how to set cookies from the client by calling a server action, enabling interactive features like authentication and preferences.
Core Features & Use Cases
- Client component triggers server actions
- Server actions modify cookies securely
- Real-world examples: theme toggle, accept cookies banner, language preference
Quick Start
Create a client component with 'use client' that calls a server action to set a cookie on click, e.g., a ThemeToggle button calling setTheme on the server.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: nextjs-client-cookie-pattern Download link: https://github.com/mcclowes/vague-playground/archive/main.zip#nextjs-client-cookie-pattern Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.