Getting Started
Introduction
Development
Getting Started
Local Portless Workspace
Agent Skills
Release Workflow
Hooks
Overview
Browser
useCopyToClipboard
Effects
useKeyBinding
State
useToggle
Ui
Overview
Components
Avatar
Button
Card
Chart
DropdownMenu
Kbd
Popover
Select
Separator
Skeleton
Slider
Table
Tooltip
Typography
Data Display
DataGrid
Feedback
Command
Dialog
Forms
Checkbox
Field
Input
Label
RadioGroup
Utils
Overview
Datetime
formatTimestamp
Number
formatCents
String
toCamelCase
toSlug
toTitleCase
Validators
isEmpty
  1. Home
  2. Utils
  3. String

String Utils

Browse 3 pages in the string category.

toCamelCase

Converts text into camelCase using spaces, underscores, and hyphens as separators. The function lowercases all tokens, removes extra separators, and joins subsequent tokens with an uppercase leading character.

toSlug

Converts a string into a URL-friendly slug. The function lowercases text, removes diacritics, normalizes separators, strips unsupported characters, and joins words with hyphens.

toTitleCase

Converts text to title case using spaces, underscores, and hyphens as word separators. The function normalizes separators into single spaces, removes extra separators, and transforms each token so the first character is uppercase while the rest are lowercase.

On This Page
  • String Pages