next safe action

PreviousNext

handles your Next.js app mutations type safety, input/output validation, server errors and even more!

Docs
formcnfile

Preview

Loading preview…
registry/default/actions/safe-action.ts
import { createSafeActionClient } from "next-safe-action";

// Create the client with default options.
export const actionClient = createSafeActionClient();

Installation

npx shadcn@latest add @formcn/safe-action

Usage

Usage varies by registry entry. Refer to the registry docs or source files below for details.