getCompletions() — tailwindcss Function Reference
Architecture documentation for the getCompletions() function in utilities.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 7ed57b2d_198a_e481_f364_5511e5dbdd4f["getCompletions()"] e0663e8a_2f7d_8f2f_d3e7_62f07eccc486["Utilities"] 7ed57b2d_198a_e481_f364_5511e5dbdd4f -->|defined in| e0663e8a_2f7d_8f2f_d3e7_62f07eccc486 a63f95f1_044a_f4fa_d577_48c385d0d0cb["has()"] 7ed57b2d_198a_e481_f364_5511e5dbdd4f -->|calls| a63f95f1_044a_f4fa_d577_48c385d0d0cb 0e687735_200d_7212_bbf6_504ebc1bfe77["get()"] 7ed57b2d_198a_e481_f364_5511e5dbdd4f -->|calls| 0e687735_200d_7212_bbf6_504ebc1bfe77 style 7ed57b2d_198a_e481_f364_5511e5dbdd4f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/utilities.ts lines 121–129
getCompletions(name: string): SuggestionGroup[] {
if (this.has(name, 'static')) {
return (
this.completions.get(name)?.() ?? [{ supportsNegative: false, values: [], modifiers: [] }]
)
}
return this.completions.get(name)?.() ?? []
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getCompletions() do?
getCompletions() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/utilities.ts.
Where is getCompletions() defined?
getCompletions() is defined in packages/tailwindcss/src/utilities.ts at line 121.
What does getCompletions() call?
getCompletions() calls 2 function(s): get, has.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free