Contact
Details are IconItem rows; links are optional, so an address can stay
plain text. The form is a plain POST to action.
Options
Section titled “Options”details: list of{ icon, label, href };detailsTitlelabels the list (default “Contact details”)layout:split(default, details start, form end),stacked(details in a row above the form)fields: preset field setssimple(default): name, email, messagedetailed: name, email, phone, subject select, message, consent checkboxcallback: name, phone, best time to call
subjects: options for thedetailedsubject selectconsent: label for thedetailedconsent checkboxmapSrcandmapTitle: an embed URL rendered as a titled iframe; or pass your own embed in themapslotaction,button: form target and submit labelsurface:light,alternate,brand,darkid: 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" }, ]}/>