Packages

shadcn/ui-inspired component library for Phoenix LiveView with eject-based distribution. CSS-first theme system, 829 components across 20+ categories — Calendar, Chart, Animation, DnD, Editor, Collaboration, Typography, Navigation, Background, Surface, and more.

Current section

Files

Jump to
phia_ui lib phiaui_design web router.ex
Raw

lib/phiaui_design/web/router.ex

defmodule PhiaUiDesign.Web.Router do
@moduledoc """
Router for the PhiaUI Design tool.
Single-route application: all traffic goes to `EditorLive` which
manages the full editor UI as a single-page LiveView.
"""
use Phoenix.Router
import Phoenix.LiveView.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, html: {PhiaUiDesign.Web.Layouts, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
scope "/", PhiaUiDesign.Web do
pipe_through :browser
live "/", EditorLive, :index
end
end