Skip to content

pantoken / packages/core/src / toKebab

함수: toKebab()

toKebab(str): string

베타

CamelCase / 공백으로 구분된 문자열을 kebab-case로 변환합니다.

매개변수

str

string

반환값

string

예제

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

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