Home / Function/ normalizeSelector() — ui Function Reference

normalizeSelector() — ui Function Reference

Architecture documentation for the normalizeSelector() function in create-style-map.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  812864f9_7f43_98c2_4fa0_d3fff7ea5f24["normalizeSelector()"]
  20ad6f91_6d0b_ef0e_6867_01a114c31d1d["create-style-map.ts"]
  812864f9_7f43_98c2_4fa0_d3fff7ea5f24 -->|defined in| 20ad6f91_6d0b_ef0e_6867_01a114c31d1d
  67dd667d_bfd0_b60f_05a7_ffc37d6b752b["createStyleMap()"]
  67dd667d_bfd0_b60f_05a7_ffc37d6b752b -->|calls| 812864f9_7f43_98c2_4fa0_d3fff7ea5f24
  style 812864f9_7f43_98c2_4fa0_d3fff7ea5f24 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/src/styles/create-style-map.ts lines 63–65

function normalizeSelector(selector: string) {
  return selector.replace(/\s*&\s*/g, "").trim()
}

Subdomains

Called By

Frequently Asked Questions

What does normalizeSelector() do?
normalizeSelector() is a function in the ui codebase, defined in packages/shadcn/src/styles/create-style-map.ts.
Where is normalizeSelector() defined?
normalizeSelector() is defined in packages/shadcn/src/styles/create-style-map.ts at line 63.
What calls normalizeSelector()?
normalizeSelector() is called by 1 function(s): createStyleMap.

Analyze Your Own Codebase

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

Try Supermodel Free