MCPcopy Index your code
hub / github.com/Tailframes/react-components / kebabCase

Function kebabCase

utils.ts:9–13  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

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

Callers 2

TabsFunction · 0.90
TabFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected