mirror of
https://github.com/zoriya/v10.git
synced 2026-08-12 00:49:29 +00:00
feat(core): add popover component (#615)
This commit is contained in:
@@ -5,3 +5,7 @@ export function pascalCase(str: string): string {
|
||||
export function camelCase(str: string): string {
|
||||
return pascalCase(str).replace(/^(.)/, (_, c) => c.toLowerCase());
|
||||
}
|
||||
|
||||
export function kebabCase(str: string): string {
|
||||
return str.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user