Theme Switcher

A compact control for switching between light, dark, and system themes with animated transitions.

Accessibility

  • Each theme option has a descriptive aria-label
  • Keyboard navigable with Tab and Enter/Space
  • Active state is clearly indicated visually
  • Smooth animations honor user's motion preferences

Props

PropTypeDefaultDescription
classNamestring-Additional CSS classes to apply to the container