Skip to content

pantoken / packages/core/src / toKebab

Mahi: toKebab()

toKebab(str): string

Beta

Huri tētahi aho CamelCase / me ngā wāhi kia kebab-case.

Ngā Tawhā

str

string

Whakahokia

string

Tauira

ts
import { toKebab } from "@pantoken/core";

toKebab("baseButton");   // → "base-button"
toKebab("Font Family");  // → "font-family"
toKebab("rebrandLight"); // → "rebrand-light"