Home / Function/ getCompletions() — tailwindcss Function Reference

getCompletions() — tailwindcss Function Reference

Architecture documentation for the getCompletions() function in utilities.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  1d437737_82ec_c92c_4365_ac62d5c721e1["getCompletions()"]
  ce3ada3e_5086_2254_5fa3_7039035fce28["has()"]
  1d437737_82ec_c92c_4365_ac62d5c721e1 -->|calls| ce3ada3e_5086_2254_5fa3_7039035fce28
  143002c2_0d0e_8f60_a309_097512cbff95["get()"]
  1d437737_82ec_c92c_4365_ac62d5c721e1 -->|calls| 143002c2_0d0e_8f60_a309_097512cbff95
  style 1d437737_82ec_c92c_4365_ac62d5c721e1 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

Calls

Frequently Asked Questions

What does getCompletions() do?
getCompletions() is a function in the tailwindcss codebase.
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