Skip to content

pantoken / packages/core/src / toKebab

फंक्शन: toKebab()

toKebab(str): string

बीटा

एक CamelCase / spaced स्ट्रिंग को kebab-case में परिवर्तित करें।

पैरामीटर

str

string

वापसी

string

उदाहरण

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

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