Skip to content

pantoken / packages/core/src / toKebab

Fonksiyon: toKebab()

toKebab(str): string

Beta

Bir CamelCase / boşluklu dizeyi kebab-case'e dönüştür.

Parametreler

str

string

Döndürür

string

Örnek

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

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