MCPcopy
hub / github.com/tomkp/react-split-pane / formatSizeForAnnouncement

Function formatSizeForAnnouncement

src/utils/accessibility.ts:36–41  ·  view source on GitHub ↗
(size: number)

Source from the content-addressed store, hash-verified

34 * Format size for screen reader announcement
35 */
36export function formatSizeForAnnouncement(size: number): string {
37 if (size < 1000) {
38 return `${Math.round(size)} pixels`;
39 }
40 return `${Math.round(size / 10) / 100} thousand pixels`;
41}
42
43/**
44 * Generate accessible label for divider

Callers 2

useKeyboardResizeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…