camelToKebab() — tailwindcss Function Reference
Architecture documentation for the camelToKebab() function in migrate-camelcase-in-named-value.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 52d86fca_7335_d629_1996_a41f7b2ffa5f["camelToKebab()"] 52b211e0_83d1_a1d7_814c_3d7122a1a27e["migrate-camelcase-in-named-value.ts"] 52d86fca_7335_d629_1996_a41f7b2ffa5f -->|defined in| 52b211e0_83d1_a1d7_814c_3d7122a1a27e e33960a2_fa25_720d_6e49_e29c569295d2["migrateCamelcaseInNamedValue()"] e33960a2_fa25_720d_6e49_e29c569295d2 -->|calls| 52d86fca_7335_d629_1996_a41f7b2ffa5f style 52d86fca_7335_d629_1996_a41f7b2ffa5f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/template/migrate-camelcase-in-named-value.ts lines 52–54
function camelToKebab(str: string): string {
return str.replace(/([A-Z])/g, '-$1').toLowerCase()
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does camelToKebab() do?
camelToKebab() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/codemods/template/migrate-camelcase-in-named-value.ts.
Where is camelToKebab() defined?
camelToKebab() is defined in packages/@tailwindcss-upgrade/src/codemods/template/migrate-camelcase-in-named-value.ts at line 52.
What calls camelToKebab()?
camelToKebab() is called by 1 function(s): migrateCamelcaseInNamedValue.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free