name: Timepicker description: Input controls that allow users to select time values through a dropdown interface with hours, minutes, and optional AM/PM selection. category: Input slds_classes: root: '' elements: [] modifiers: [] states: - class: slds-is-selected description: Selected time state trigger: Currently selected time option variants: - name: Base description: Standard time selection dropdown classes: [] usage_context: Default timepicker for time value selection differences: Dropdown list with predefined time options lightning_component: name: lightning-input (type='time') url: https://developer.salesforce.com/docs/component-library/bundle/lightning-input mapping_notes: Mapped through lightning-input with type='time' which provides native time picker accessibility: keyboard_support: - Tab to focus timepicker input - Arrow keys to navigate time options - Enter/Space to select time - Type to filter time options screen_reader: - Current time value announced - Time options list communicated - Selection changes announced - Time format clearly communicated aria_attributes: - role='listbox' for time options container - role='option' for individual time slots - aria-selected for chosen time - aria-label for time selection purpose - aria-expanded for dropdown state usage_guidelines: when_to_use: - For time selection in forms - When specific time precision is needed - For scheduling or appointment interfaces - When time constraints or ranges apply when_not_to_use: - For approximate times (use text input) - When time precision is not important - For duration selection (use different controls) best_practices: - Use appropriate time increments (15min, 30min, etc.) - Provide clear time format indication - Support both keyboard and mouse interaction - Handle time zone considerations appropriately - Show current selection clearly common_mistakes: - Using inappropriate time increments - Poor time format handling - Not considering time zone implications - Unclear selection feedback code_examples: - title: Basic Timepicker code: "