feat(packages): error dialog component (#1077)

This commit is contained in:
Sam Potts
2026-03-31 17:00:45 -07:00
committed by GitHub
parent 29465609c5
commit 3430fe1a49
42 changed files with 612 additions and 153 deletions
+1 -1
View File
@@ -14,5 +14,5 @@ const UNSAFE_CHARS = /[^a-zA-Z0-9_-]/g;
*/
export function useSafeId(prefix?: string): string {
const raw = useId().replace(UNSAFE_CHARS, '');
return prefix ? `${prefix}${raw}` : raw;
return prefix ? `${prefix}-${raw}` : raw;
}