What this tool is for
Create a hyphenated name for a CSS class or component file. It can pick out words inside an existing mixed-case name, so you can start from the component you already have.
How to use it
Enter “SummerReadingList” and copy “summer-reading-list” from Preview. Add the leading period yourself when using the name as a CSS selector.
Worked example
Input
Summer Reading ListResult
summer-reading-listHow does this differ from generating a URL slug?
Here, “SummerReadingList” splits at the capitals. The URL slug generator lowercases that particular input to “summerreadinglist” and offers a separate option to fold Latin accents. Pick the tool according to the naming rule you need.