Power Off Slide

iOS-style power slider interaction with haptics.

Open in v0~0.9 kB

Last updated: March 7, 2026

Slide to power off

Installation

npx smoothui-cli add power-off-slide

Features

  • Drag to confirm interaction
  • Spring physics and rubber-banding
  • Accessible labels and states
  • Theming options

Accessibility

ARIA Attributes

AttributeElementPurpose
aria-disabledDrag handleIndicates when the slider is disabled
tabIndex={0}Drag handleMakes the handle focusable when not disabled
tabIndex={-1}Drag handleRemoves the handle from tab order when disabled

Reduced Motion

This component respects the prefers-reduced-motion media query via useReducedMotion from Motion. When reduced motion is preferred, the drag interaction is disabled (drag={false}), the shimmer text animation stops, and the handle uses instant transitions.

Props

On this page

Created by

Powered by

motion.dev
lucide.dev