Home / Function/ has() — tailwindcss Function Reference

has() — tailwindcss Function Reference

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

Function typescript Oxide PreProcessors calls 1 called by 5

Entity Profile

Dependency Diagram

graph TD
  a63f95f1_044a_f4fa_d577_48c385d0d0cb["has()"]
  e0663e8a_2f7d_8f2f_d3e7_62f07eccc486["Utilities"]
  a63f95f1_044a_f4fa_d577_48c385d0d0cb -->|defined in| e0663e8a_2f7d_8f2f_d3e7_62f07eccc486
  0e687735_200d_7212_bbf6_504ebc1bfe77["get()"]
  0e687735_200d_7212_bbf6_504ebc1bfe77 -->|calls| a63f95f1_044a_f4fa_d577_48c385d0d0cb
  7ed57b2d_198a_e481_f364_5511e5dbdd4f["getCompletions()"]
  7ed57b2d_198a_e481_f364_5511e5dbdd4f -->|calls| a63f95f1_044a_f4fa_d577_48c385d0d0cb
  31653e23_464a_3652_4a48_0c82332a92c4["buildPluginApi()"]
  31653e23_464a_3652_4a48_0c82332a92c4 -->|calls| a63f95f1_044a_f4fa_d577_48c385d0d0cb
  ad08c258_e5c2_4cd4_c935_0925a940458e["compileCandidates()"]
  ad08c258_e5c2_4cd4_c935_0925a940458e -->|calls| a63f95f1_044a_f4fa_d577_48c385d0d0cb
  95f6fed7_1762_4f0d_f308_50c6be9a770a["compileAst()"]
  95f6fed7_1762_4f0d_f308_50c6be9a770a -->|calls| a63f95f1_044a_f4fa_d577_48c385d0d0cb
  0e687735_200d_7212_bbf6_504ebc1bfe77["get()"]
  a63f95f1_044a_f4fa_d577_48c385d0d0cb -->|calls| 0e687735_200d_7212_bbf6_504ebc1bfe77
  style a63f95f1_044a_f4fa_d577_48c385d0d0cb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/utilities.ts lines 113–115

  has(name: string, kind: 'static' | 'functional') {
    return this.utilities.has(name) && this.utilities.get(name).some((fn) => fn.kind === kind)
  }

Domain

Subdomains

Calls

Frequently Asked Questions

What does has() do?
has() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/utilities.ts.
Where is has() defined?
has() is defined in packages/tailwindcss/src/utilities.ts at line 113.
What does has() call?
has() calls 1 function(s): get.
What calls has()?
has() is called by 5 function(s): buildPluginApi, compileAst, compileCandidates, get, getCompletions.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free