UNPKG

@sandlada/mdc

Version:

@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.

11 lines 425 B
/** * @license * Copyright 2024 Kai-Orion & Sandlada * SPDX-License-Identifier: MIT */ /** * OnPrimary -> on-primary */ export declare function toKebabCase<T extends string>(str: T): KebabCase<T>; export type KebabCase<S extends string> = S extends `${infer T}${infer U}` ? U extends Uncapitalize<U> ? `${Lowercase<T>}${KebabCase<U>}` : `${Lowercase<T>}-${KebabCase<U>}` : S; //# sourceMappingURL=to-kebab-case.d.ts.map