MCPcopy
hub / github.com/youzan/vant / createNamespace

Function createNamespace

packages/vant/src/utils/create.ts:66–73  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

64export type BEM = ReturnType<typeof createBEM>;
65
66export function createNamespace(name: string) {
67 const prefixedName = `van-${name}`;
68 return [
69 prefixedName,
70 createBEM(prefixedName),
71 createTranslate(prefixedName),
72 ] as const;
73}

Callers 15

Progress.tsxFile · 0.90
ContactList.tsxFile · 0.90
PasswordInput.tsxFile · 0.90
Highlight.tsxFile · 0.90
DropdownItem.tsxFile · 0.90
FloatingPanel.tsxFile · 0.90
SubmitBar.tsxFile · 0.90
Image.tsxFile · 0.90
RollingText.tsxFile · 0.90
SwipeItem.tsxFile · 0.90
DropdownMenu.tsxFile · 0.90

Calls 2

createBEMFunction · 0.85
createTranslateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…