Adding Patterns
Learn how to add pre-built patterns to accelerate your development
Basic Usage
seanstack add <pattern-type> [name] [options]Available Pattern Types
component
Add a new React component with TypeScript and styling
seanstack add component Buttonpage
Add a new Next.js page with routing configured
seanstack add page dashboardapi
Add a new API route with validation and error handling
seanstack add api usershook
Add a custom React hook with TypeScript
seanstack add hook useAuthOptions
--typescript
Generate TypeScript files (default: true)
--styled
Include styling with Tailwind CSS classes
--test
Generate test files with Jest and React Testing Library