SHA256
11 lines
370 B
JavaScript
11 lines
370 B
JavaScript
export function createOverflowDots({ className = '' } = {}) {
|
|
const dots = document.createElement('span');
|
|
const extra = String(className || '').trim();
|
|
dots.className = `app-overflow-dots${extra ? ` ${extra}` : ''}`;
|
|
dots.setAttribute('aria-hidden', 'true');
|
|
for (let i = 0; i < 3; i += 1) {
|
|
dots.append(document.createElement('i'));
|
|
}
|
|
return dots;
|
|
}
|