Shipping Address
Shipping address form with full name, street address, city and postal code fields, each with the right autocomplete attribute for browser autofill at checkout.
src/registry/ui/shipping-address.tsx/r/shipping-address.json
Installation#
bash
npx shadcn@latest add @minidev/shipping-address
MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/shipping-address.json
Usage#
tsx
import { ShippingAddress } from "@/components/ui/shipping-address"
export function Example() {
return <ShippingAddress />
}
API reference#
| Prop | Type | Default |
|---|---|---|
className | string | - |
Dependencies#
npm
React only
Built from
Related e-commerce components#
Cart Line ItemReact shopping cart row with product title, unit price, a quantity stepper and an optional remove button. Callbacks report quantity changes and removals.Checkout SummaryTailwind order summary card listing line items and prices, a divided total row and a full width Pay now button. Fits the side column of a checkout.Coupon InputPromo code field with an Apply button and inline success or error messages. The demo validation is easy to replace with your own check in React.Order SummaryA checkout summary card listing line items such as subtotal, shipping and tax, then a separator and a bold total. Built with React for cart pages.Product CardA storefront product tile with a square image, an optional corner badge like Sale or New, the product title, price and an Add to cart button when onAdd is set.Quantity StepperReact quantity stepper with minus and plus buttons around a tabular count. Clamps to min and max, disables at the limits, and works controlled or uncontrolled.
All e-commerce components