'use client'; import { Button } from 'primereact/button'; import { Checkbox } from 'primereact/checkbox'; import { Dropdown } from 'primereact/dropdown'; import { InputNumber } from 'primereact/inputnumber'; import { InputText } from 'primereact/inputtext'; import React, { useState } from 'react'; function CheckoutForm() { const [value, setValue] = useState(''); const [quantities] = useState([1, 1, 1]); const [checked, setChecked] = useState(true); const [checked2, setChecked2] = useState(true); const [selectedCity, setSelectedCity] = useState(null); const [cities] = useState([ { name: 'New York', code: 'NY' }, { name: 'Rome', code: 'RM' }, { name: 'London', code: 'LDN' }, { name: 'Istanbul', code: 'IST' }, { name: 'Paris', code: 'PRS' } ]); return (
Checkout
  • Cart
  • Information
  • Shipping
  • Payment
Contact Information
setChecked(e.checked ?? false)} checked={checked} inputId="checkbox-1">
Shipping setSelectedCity(e.value)} placeholder="Country / Region" optionLabel="name" showClear className="w-full">
setChecked2(e.checked ?? false)} checked={checked2} inputId="checkbox-2">
Your Cart
product
Product Name $123.00
Black | Large
setValue(e.target.value)} placeholder="Promo code" className="w-full" />
Subtotal $123.00
Shipping Free
Total $123.00
Country Flag No additional duties or taxes.
); } export default CheckoutForm;