name: "Counter" description: "A number input field with increment and decrement buttons, allowing users to adjust numeric values using buttons or direct input. Commonly used for quantity selection, age input, or any numeric field where step-wise adjustment is helpful." category: "Input" slds_classes: root: "slds-input_counter" elements: - class: "slds-input_counter" description: "Variant for number input with increment and decrement buttons" purpose: "Creates a centered number input field with padding for button placement" - class: "slds-input__button_decrement" description: "Decrement button within counter input field" purpose: "Positions the minus/decrement button on the left side of the input" - class: "slds-input__button_increment" description: "Increment button within counter input field" purpose: "Positions the plus/increment button on the right side of the input" modifiers: [] states: [] variants: - name: "Base" description: "Standard number input with increment/decrement buttons" classes: ["slds-input_counter"] usage_context: "Default implementation for numeric input with buttons" differences: "Input field centered with buttons on left and right" lightning_component: name: "lightning-input" url: "https://developer.salesforce.com/docs/component-library/bundle/lightning-input" mapping_notes: "Use type='number' with lightning-input, counter styling is applied automatically" accessibility: keyboard_support: - "Tab to navigate to the input field" - "Arrow keys or direct typing to change value" - "Enter to submit if in a form" - "Click or Space on increment/decrement buttons" screen_reader: - "Input field should have a descriptive label" - "Current value should be announced when changed" - "Min and max values should be communicated" aria_attributes: - "aria-label or associated