(value: string)
| 7 | export const joinClassNames = (...classNames: string[]) => classNames.join(' '); |
| 8 | |
| 9 | export const kebabCase = (value: string) => |
| 10 | value |
| 11 | .replace(/([a-z])([A-Z])/g, '$1-$2') |
| 12 | .replace(/\s+/g, '-') |
| 13 | .toLowerCase(); |
| 14 | |
| 15 | export const handleKeyboardEvent = |
| 16 | <Type = Element>( |