description = "User registration form with autocompletion examples"
name = "user_registration"

[[fields]]
name = "username"
prompt = "Enter username"
required = true
type = "text"

[[fields]]
name = "email"
placeholder = "user@example.com"
prompt = "Enter your email address"
required = true
type = "text"

[[fields]]
name = "password"
prompt = "Enter password"
required = true
type = "password"

[[fields]]
name = "confirm_password"
prompt = "Confirm password"
required = true
type = "password"

[[fields]]
name = "country"
options = [
  { value = "United States", label = "🇺🇸 United States" },
  { value = "Canada", label = "🇨🇦 Canada" },
  { value = "Mexico", label = "🇲🇽 Mexico" },
  { value = "United Kingdom", label = "🇬🇧 United Kingdom" },
  { value = "Germany", label = "🇩🇪 Germany" },
  { value = "France", label = "🇫🇷 France" },
  { value = "Spain", label = "🇪🇸 Spain" },
  { value = "Italy", label = "🇮🇹 Italy" },
  { value = "Other", label = "🌍 Other" },
]
prompt = "Select your country"
type = "select"

[[fields]]
name = "company"
placeholder = "Acme Corporation"
prompt = "Enter company name"
type = "text"

[[fields]]
name = "website"
placeholder = "https://example.com"
prompt = "Enter company website"
type = "text"

[[fields]]
default = true
name = "subscribe"
prompt = "Subscribe to newsletter?"
type = "confirm"

[[fields]]
name = "interests"
options = [
  { value = "Technology", label = "💻 Technology" },
  { value = "Design", label = "🎨 Design" },
  { value = "Marketing", label = "📢 Marketing" },
  { value = "Business", label = "💼 Business" },
  { value = "Development", label = "🔧 Development" },
  { value = "Data Science", label = "📊 Data Science" },
]
prompt = "Select your interests"
type = "multiselect"

[[fields]]
default = false
name = "agreed_terms"
prompt = "Do you agree to the terms and conditions?"
type = "confirm"
