Form Hidden

GitHub

Hidden form field that submits a value without exposing it for user input.

Installation

bash
pnpm dlx shadcn@latest add @cs/form-hidden

Usage

tsx
import { FormHidden } from "@/components/cs/form-hidden"
tsx
<FormHidden name="id" value="123" />

API Reference

FormHidden

Hidden form field that submits a value without exposing it for user input.

Props

NameTypeDefaultDescription
name *string-Form field name.
value *string | number | boolean | undefined | null-Value to submit.