name: Docked Composer
description: A persistent composition interface that remains docked at the bottom of the screen, allowing users to create
content (emails, messages, posts) while maintaining context of their current workflow.
category: Overlay
slds_classes:
root: slds-docked-composer
elements:
- class: slds-docked-composer__header
description: Header section of the docked composer
purpose: Contains title, status indicators, and header controls
- class: slds-docked-composer__body
description: Main content area of the composer
purpose: Contains the primary composition interface and controls
- class: slds-docked-composer__footer
description: Footer section with action buttons
purpose: Contains send, save, and other action buttons
- class: slds-docked-composer__lead
description: Lead content area within composer
purpose: Primary content or recipient information
- class: slds-docked-composer__toolbar
description: Toolbar for composer actions
purpose: Contains formatting and composition tools
modifiers: []
states:
- class: slds-is-open
description: Expanded composer state
trigger: Applied when composer is expanded and active
- class: slds-is-closed
description: Minimized composer state
trigger: Applied when composer is minimized
variants:
- name: Base
description: Standard docked composer for general composition
classes:
- slds-docked-composer
usage_context: Default implementation for content composition
differences: Basic composer with header, body, and footer
- name: Email
description: Email-specific docked composer
classes:
- slds-docked-composer
usage_context: For email composition workflows
differences: Email-specific fields and formatting options
- name: Task
description: Task creation docked composer
classes:
- slds-docked-composer
usage_context: For task and reminder creation
differences: Task-specific fields and controls
lightning_component:
name: No direct component
url: https://developer.salesforce.com/docs/component-library/overview/components
mapping_notes: No direct Lightning Base Component equivalent - typically implemented using custom components with lightning-modal
or lightning-card patterns
accessibility:
keyboard_support:
- Tab navigation through composer elements
- Enter/Space to activate buttons and controls
- Escape to minimize or close composer
- Arrow keys for toolbar navigation
screen_reader:
- Composer purpose and state announced
- Form fields and labels properly associated
- Action buttons clearly described
- Status updates communicated
aria_attributes:
- role='dialog' for composer container
- aria-labelledby for composer title
- aria-describedby for composer content
- aria-expanded for minimize/expand state
- aria-live for status updates
usage_guidelines:
when_to_use:
- For content composition that shouldn't interrupt workflow
- When users need to reference other content while composing
- For email, message, or document creation
- When composition is a secondary task
when_not_to_use:
- For simple, quick inputs (use modal instead)
- When composition is the primary task
- On small screens with limited space
best_practices:
- Provide clear minimize/maximize controls
- Save draft content automatically
- Allow multiple composers when appropriate
- Maintain scroll position when minimized
- Provide clear send/save actions
common_mistakes:
- Blocking user interaction with underlying content
- Not saving drafts automatically
- Poor mobile responsive behavior
- Unclear composer state indicators
code_examples:
- title: Basic Docked Composer
description: Standard docked composer for general content creation
code: "\n"
- title: Minimized Docked Composer
description: Docked composer in minimized state
code: "\n"
- title: Task Composer
description: Docked composer configured for task creation
code: "\n"
dependencies:
css_files:
- docked-composer.css
- form-element.css
- button.css
- input.css
- textarea.css
javascript:
- docked-composer.js
icons:
- standard-sprite.svg
- utility-sprite.svg
other_components:
- form-element
- button
- input
- textarea
related_components:
- name: Modal
relationship: alternative
description: Alternative for full-screen composition
- name: Rich Text Editor
relationship: depends-on
description: Often includes rich text editing capabilities
- name: Form Element
relationship: container
description: Contains form elements for data input
references:
official_docs: https://v1.lightningdesignsystem.com/components/docked-composer/
metadata:
version: 1.0.0
last_updated: '2025-11-12'
review_status: complete
notes: ' Cleaned invalid classes and CSS variables on 2025-11-12 using slds-plus.css as source of truth.'