Defaults
Ez az oldal még csak angolul érhető el.
The defaults of @poltura/theme-sdk/forms.
Ezen az oldalon
import { … } from '@poltura/theme-sdk/forms';StoreForm
A merchant's published form, drawn with its fields, steps, validation, captcha and success message.
StoreForm(props: StoreFormProps): ReactElementThe host loads the form, checks the captcha and stores the submission.
Props: StoreFormProps
Example
import { StoreForm } from '@poltura/theme-sdk/forms';
export function WholesaleEnquiry() {
return <StoreForm handle="wholesale" layout="compact" copy={{ submitLabel: 'Ask for prices' }} />;
}See also: useStoreForm, FormField, SubmitButton
NewsletterForm
The newsletter sign-up, inline, stacked, as the footer column or as a full-width band; nothing when it is off.
NewsletterForm(props: NewsletterFormProps): ReactElement | nullA sign-up records the shopper's marketing consent and emits the lead event.
Props: NewsletterFormProps
Example
import { NewsletterForm } from '@poltura/theme-sdk/forms';
export function FooterSignUp() {
return <NewsletterForm layout="footer" />;
}See also: useNewsletter, StoreForm, NewsletterTrigger
ContactForm
The store's contact form: name, email, subject and message, sent to the merchant's inbox.
ContactForm(props: ContactFormProps): ReactElementSending emits the lead event.
Props: ContactFormProps
import { ContactForm } from '@poltura/theme-sdk/forms';
export function AskUs() {
return <ContactForm formTitle="Ask us anything" showSubject={false} />;
}