User Account Quick Start
The User Account drop-in provides a complete customer account management experience with containers for viewing orders, managing addresses, updating personal information, and changing passwords.
Version: 3.0.0-beta4
Quick example
The User Account drop-in is included in the Commerce boilerplate . This example shows the basic pattern:
// 1. Import initializer (handles all setup)import '../../scripts/initializers/account.js';
// 2. Import the container you needimport AddressForm from '@dropins/storefront-account/containers/AddressForm.js';
// 3. Import the providerimport { render as provider } from '@dropins/storefront-account/render.js';
// 4. Render in your blockexport default async function decorate(block) { await provider.render(AddressForm, { // Configuration options - see Containers page })(block);}New to drop-ins? See the Using drop-ins guide for complete step-by-step instructions.
Quick reference
Import paths:
- Initializer:
import '../../scripts/initializers/account.js' - Containers:
import ContainerName from '@dropins/storefront-account/containers/ContainerName.js' - Provider:
import { render } from '@dropins/storefront-account/render.js'
Package: @dropins/storefront-account
Version: 3.0.0-beta4 (verify compatibility with your Commerce instance)
Example container: AddressForm
Learn more
- Containers - Available UI components and configuration options
- Initialization - Customize initializer settings and data models
- Functions - Control drop-in behavior programmatically
- Events - Listen to and respond to drop-in state changes
- Slots - Extend containers with custom content