MCPcopy Create free account
hub / github.com/adobe/react-spectrum / keyframes

Function keyframes

packages/@react-spectrum/ai/src/style/style-macro.ts:33–42  ·  view source on GitHub ↗
(this: MacroContext | void, value: string)

Source from the content-addressed store, hash-verified

31}
32
33export function keyframes(this: MacroContext | void, value: string): string {
34 let name = generateName(value);
35 if (this && typeof this.addAsset === 'function') {
36 this.addAsset({
37 type: 'css',
38 content: `@keyframes ${name} {\n ${value}\n}`
39 });
40 }
41 return name;
42}
43
44function css(this: MacroContext | void, content: string): string {
45 let className = generateName(content);

Callers 3

ResponseStatus.tsxFile · 0.90
AttachmentList.tsxFile · 0.90

Calls 2

generateNameFunction · 0.70
addAssetMethod · 0.65

Tested by

no test coverage detected