Sound for Errors and Warnings
Sound is appropriate for errors and warnings that can't be overlooked.
Correct:
function handleError(error: Error) {
playSound("error");
showErrorToast(error.message);
}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.
Sound is appropriate for errors and warnings that can't be overlooked.
Correct:
function handleError(error: Error) {
playSound("error");
showErrorToast(error.message);
}