Skip to content

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

PurchaseOrderCommentForm Container

Provides a form for adding comments to a purchase order with validation and submission handling.

Version: 1.0.0-beta3

Configuration

The PurchaseOrderCommentForm container provides the following configuration options:

ParameterTypeReq?Description
withHeaderbooleanNoWhen true, displays the header section. Set to false when embedding the container within a layout that provides its own header.
withWrapperbooleanNoWhen true, wraps the container in a styled wrapper. Set to false for custom styling or when the container is embedded within another styled component.
classNamestringNoAdditional CSS classes to apply to the container for custom styling.

Slots

This container does not expose any customizable slots.

Usage

The following example demonstrates how to use the PurchaseOrderCommentForm container:

import { render as provider } from '@dropins/storefront-purchase-order/render.js';
import { PurchaseOrderCommentForm } from '@dropins/storefront-purchase-order/containers/PurchaseOrderCommentForm.js';
await provider.render(PurchaseOrderCommentForm, {
withHeader: true,
withWrapper: true,
className: "Example Name",
})(block);