Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Living wiki of UI design patterns and best practices built with Fumadocs, Next.js, and Base UI components.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
rules/a11y-toggle-setting.md
1---2title: Toggle Setting to Disable Sounds3impact: HIGH4tags: a11y, settings, toggle5---67## Toggle Setting to Disable Sounds89Provide explicit toggle to disable sounds in settings.1011**Incorrect (no way to disable):**1213```tsx14function App() {15return <SoundProvider>{children}</SoundProvider>;16}17```1819**Correct (toggle available):**2021```tsx22function App() {23const { soundEnabled } = usePreferences();24return (25<SoundProvider enabled={soundEnabled}>26{children}27</SoundProvider>28);29}30```31