name: "Publishers" description: "A component for creating and publishing content, posts, or comments. Provides an input area with formatting options and action buttons for submitting user-generated content." category: "Complex Components" slds_classes: root: "slds-publisher" elements: - class: "slds-publisher__input" description: "Input area for content creation" purpose: "Text input or textarea for user content" - class: "slds-publisher__actions" description: "Container for publisher actions" purpose: "Holds submit and formatting buttons" - class: "slds-publisher__toggle-visibility" description: "Toggle element for publisher visibility" purpose: "Controls visibility of publisher component" modifiers: [] states: - class: "slds-is-active" description: "Active state for publisher" trigger: "When publisher is expanded and ready for input" variants: - name: "Base" description: "Standard publisher for creating posts or comments" classes: ["slds-publisher"] usage_context: "Default publisher implementation" differences: "Input area with action buttons for content creation" lightning_component: name: "" url: "https://developer.salesforce.com/docs/component-library/overview/components" mapping_notes: "No direct Lightning Base Component - typically built with lightning-textarea and custom components" accessibility: keyboard_support: - "Tab to navigate between input and buttons" - "Enter in input field may submit (depending on implementation)" - "Escape to cancel/collapse publisher" - "Keyboard shortcuts for formatting (if supported)" screen_reader: - "Input field label announced" - "Character count announced (if present)" - "Action button purposes announced" - "Submit confirmation announced" aria_attributes: - "aria-label on input field" - "aria-describedby for character limits or hints" - "aria-disabled on submit when invalid" - "role='textbox' on input area" usage_guidelines: when_to_use: - "For creating social posts or updates" - "For commenting systems" - "In collaboration or communication features" - "When users need to create content" when_not_to_use: - "For simple form inputs (use form elements)" - "When content creation isn't primary action" - "For search inputs" - "When rich text editing isn't needed" best_practices: - "Provide clear submit action button" - "Show character limits if applicable" - "Support basic text formatting" - "Auto-save drafts when possible" - "Provide cancel/clear option" - "Handle empty submissions gracefully" common_mistakes: - "Missing cancel or clear option" - "No character limit indication" - "Poor mobile keyboard handling" - "Not preserving draft content" - "Unclear submit button state" code_examples: - title: "Basic Publisher" code: |