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
  57a7faee_db52_fa84_f079_698f76ce0bcd["getCompletions()"]
  0c5b8668_83ec_35e3_3834_57140f6a2c3d["Utilities"]
  57a7faee_db52_fa84_f079_698f76ce0bcd -->|defined in| 0c5b8668_83ec_35e3_3834_57140f6a2c3d
  df728a67_bdd0_0789_98a1_af70e5020cd5["has()"]
  57a7faee_db52_fa84_f079_698f76ce0bcd -->|calls| df728a67_bdd0_0789_98a1_af70e5020cd5
  826fa88e_aa5d_5bf5_f2c6_9a0302d5b02f["get()"]
  57a7faee_db52_fa84_f079_698f76ce0bcd -->|calls| 826fa88e_aa5d_5bf5_f2c6_9a0302d5b02f
  style 57a7faee_db52_fa84_f079_698f76ce0bcd 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, 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