Home / Function/ opts() — ui Function Reference

opts() — ui Function Reference

Architecture documentation for the opts() function in transform.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  bc8893a6_2c17_b7b6_e800_00902f691a26["opts()"]
  b35e7ac9_4f0f_f678_f1a6_1e42325d5108["transform.ts"]
  bc8893a6_2c17_b7b6_e800_00902f691a26 -->|defined in| b35e7ac9_4f0f_f678_f1a6_1e42325d5108
  style bc8893a6_2c17_b7b6_e800_00902f691a26 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/src/styles/transform.ts lines 6–9

export type TransformerStyle<Output = SourceFile> = (opts: {
  sourceFile: SourceFile
  styleMap: StyleMap
}) => Promise<Output>

Subdomains

Frequently Asked Questions

What does opts() do?
opts() is a function in the ui codebase, defined in packages/shadcn/src/styles/transform.ts.
Where is opts() defined?
opts() is defined in packages/shadcn/src/styles/transform.ts at line 6.

Analyze Your Own Codebase

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

Try Supermodel Free