ShadcnUI (shadcn_ui v1.0.0)

Copy Markdown View Source

Transport-neutral Phoenix function components built from semantic HTML and shadcn-style CSS tokens.

use ShadcnUI imports each public defining component module directly. This preserves the Phoenix.Component attribute and slot metadata at caller sites without selecting a controller, LiveView, Dstar, or other application model.

Applications remain responsible for copying, bundling, or serving the stylesheet returned by stylesheet_path/0.

Summary

Functions

Imports the public defining component modules.

Returns the absolute path to the packaged, compiled stylesheet.

Functions

__using__(options)

(macro)

Imports the public defining component modules.

The package provides HEEx infrastructure only. It does not install routes, sockets, processes, hooks, navigation, or state synchronization.

stylesheet_path()

@spec stylesheet_path() :: String.t()

Returns the absolute path to the packaged, compiled stylesheet.