CartForm
●cart · /react·component
Renders a <form> that encodes a cart mutation as hidden inputs consumed
by a cart server action. Pass action to identify the mutation kind and
supply the relevant optional fields for that kind.
Signature
function CartForm(props: CartFormProps): Element;Parameters
| Name | Type | Description |
|---|---|---|
props | CartFormProps |
Returns
A <form> element with hidden mutation inputs and the provided children.
Example
Related
CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions
CartFormProps
Props for . Each field maps to a hidden <input the cart server action reads from FormData; only action, formAction, and children are required for every mutation
CartHydrator
Serverrenderable entry point that seeds the clientside cart hydration marker. Delegates to a client component that renders a hidden element carrying the initial