JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 57
  • Score
    100M100P100Q108821F
  • License Apache-2.0

Accessibility utilities for LessonKit packages and apps.

Package Exports

  • @lessonkit/accessibility

Readme

@lessonkit/accessibility

CI Documentation npm License

Small accessibility utilities used by LessonKit packages and apps.

Docs: Accessibility reference · Theming & accessibility guide

Install

npm install @lessonkit/accessibility

Included (0.6.0)

  • prefersReducedMotion()
  • getReducedMotionPreference()
  • shouldAnimate({ default })
  • focusFirst(container)
  • getFocusableElements(container)
  • trapFocus(container, opts)
  • createRovingTabIndex(opts)
  • visuallyHiddenStyle — inline styles for screen-reader-only content (used by @lessonkit/react Quiz)

Guidance

See the accessibility reference for keyboard and screen-reader guidance.