Skip to content

Contact

Details are IconItem rows; links are optional, so an address can stay plain text. The form is a plain POST to action.

Get in touch

Questions about the library, or a piece you need?

  • details: list of { icon, label, href }; detailsTitle labels the list (default “Contact details”)
  • layout: split (default, details start, form end), stacked (details in a row above the form)
  • fields: preset field sets
    • simple (default): name, email, message
    • detailed: name, email, phone, subject select, message, consent checkbox
    • callback: name, phone, best time to call
  • subjects: options for the detailed subject select
  • consent: label for the detailed consent checkbox
  • mapSrc and mapTitle: an embed URL rendered as a titled iframe; or pass your own embed in the map slot
  • action, button: form target and submit label
  • surface: light, alternate, brand, dark
  • id: prefix for field ids, needed when a page has more than one form
<Contact
title="Get in touch"
intro="Questions about the library, or a piece you need?"
action="/api/contact"
details={[
{ icon: "github", label: "github.com/benwellby/samla", href: "https://github.com/benwellby/samla" },
{ icon: "mail", label: "hello@example.com", href: "mailto:hello@example.com" },
]}
/>
fields="detailed" with mapSrc, surface="alternate"

Write to us

layout="stacked" fields="callback"

Request a call back

Leave your number to talk through a piece you need.