MCPcopy Index your code
hub / github.com/tomkp/react-split-pane / getDividerLabel

Function getDividerLabel

src/utils/accessibility.ts:46–52  ·  view source on GitHub ↗
(
  index: number,
  direction: 'horizontal' | 'vertical'
)

Source from the content-addressed store, hash-verified

44 * Generate accessible label for divider
45 */
46export function getDividerLabel(
47 index: number,
48 direction: 'horizontal' | 'vertical'
49): string {
50 const orientation = direction === 'horizontal' ? 'vertical' : 'horizontal';
51 return `${orientation} divider ${index + 1}`;
52}
53
54/**
55 * Get keyboard instructions for divider

Callers 2

DividerFunction · 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…