ControlButtonsComponentTouch - Touch-optimized control buttons for mobile and tablet devices.
This component provides a touch-friendly interface for media control buttons, specifically designed
for mobile and tablet experiences with larger hit areas, optimized spacing, and touch-specific interactions.
It offers the same flexibility as other control button components while prioritizing touch usability.
Key Features:
Touch-Optimized: Larger hit areas and spacing optimized for finger interactions
Flexible Layout: Horizontal or vertical button arrangements with gap control
Positioning Control: Nine-point positioning system (left/middle/right × top/center/bottom)
Per-Button Customization: Individual button styling, colors, icons, and behavior
Active State Management: Clear visual feedback for active/inactive button states
Custom Components: Support for custom button components and icon replacements
Render Hooks: Complete override capability for button content and structure
Visibility Control: Individual button show/hide with conditional rendering
Disabled States: Proper disabled styling and interaction blocking
Icon Flexibility: Support for FontAwesome icons, custom icons, and alternate icons
HTML Attributes: Granular control over all button elements (button, icon wrapper, text, content)
Shared and Individual Props: Shared defaults with per-button override capability
Accessibility: Touch-friendly ARIA attributes and semantic HTML
ControlButtonsComponentTouch - Touch-optimized control buttons for mobile and tablet devices.
This component provides a touch-friendly interface for media control buttons, specifically designed for mobile and tablet experiences with larger hit areas, optimized spacing, and touch-specific interactions. It offers the same flexibility as other control button components while prioritizing touch usability.
Key Features:
Component
Example
// Basic touch controls for mobile video player
Example
// Custom styled touch controls with haptic feedback
Example
// Analytics tracking for touch interactions
Example
// Integration with MediasfuGeneric using uiOverrides
];
return ( <ControlButtonsComponentTouch showAspect direction="horizontal" buttons={buttons} containerProps={{ 'aria-label': 'mobile controls', role: 'toolbar' }} buttonProps={{ type: 'button' }} gap={12} /> ); }
export default App;