Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

RequestNegotiableQuoteForm Container

Overview

The RequestNegotiableQuoteForm container component for the drop-in.

Version: 0.0.1

Configuration

The RequestNegotiableQuoteForm container provides the following configuration options:

ParameterTypeReq?Description
cartIdstringYesUnique identifier for cart
SuccessBannerSlotProps<{ message: stringNoConfiguration for success banner
TitleSlotProps<{ text: stringNoTitle text for
CommentFieldSlotProps<{ formErrors: Record<stringNoConfiguration for comment field
isFormDisabledbooleanYesWhether the form disabled state is active
setFormErrors(errors: Record<stringYesConfiguration for set form errors
QuoteNameFieldSlotProps<{ formErrors: Record<stringNoConfiguration for quote name field
isFormDisabledbooleanYesWhether the form disabled state is active
setFormErrors(errors: Record<stringYesConfiguration for set form errors
AttachFileFieldSlotProps<{ onChange: (files: File[]) => voidNoCallback function for attach file field
formErrorsRecord<stringYesConfiguration for form errors
isFormDisabledboolean }>YesWhether the form disabled state is active
RequestButtonSlotProps<{ requestNegotiableQuote: typeof requestNegotiableQuoteNoConfiguration for request button
formErrorsRecord<stringYesConfiguration for form errors
isFormDisabledbooleanYesWhether the form disabled state is active
setIsFormDisabled(isFormDisabled: boolean) => voidYesCallback function for set is form disabled
SaveDraftButtonSlotProps<{ requestNegotiableQuote: typeof requestNegotiableQuoteNoConfiguration for save draft button
formErrorsRecord<stringYesConfiguration for form errors
isFormDisabledbooleanYesWhether the form disabled state is active
setIsFormDisabled(isFormDisabled: boolean) => voidYesCallback function for set is form disabled

Slots

This container exposes the following slots for customization:

SlotTypeRequiredDescription
slots\{ ErrorBanner?: SlotProps&lt;\{ message: stringNoCustom slot for rendering slots

Usage

The following example demonstrates how to use the RequestNegotiableQuoteForm container:

import { RequestNegotiableQuoteForm } from '@dropins/storefront-quote-management';
export default function MyComponent() {
return (
<RequestNegotiableQuoteForm
cartId="abc-123"
isFormDisabled={true}
setFormErrors="example"
/>
);
}