Phoenix LiveView component library for the Pure Admin CSS framework.
PureAdmin wraps Pure Admin's HTML/CSS BEM patterns into Phoenix LiveView function components and LiveComponents, providing a full CoreComponents replacement for Phoenix applications.
Quick Start
Add
keen_pure_adminto yourmix.exsdependenciesInstall
@keenmate/pure-admin-corevia npm inassets/Replace
import MyAppWeb.CoreComponentswithuse PureAdmin.ComponentsImport JS hooks in
app.js:import { PureAdminHooks } from "../deps/keen_pure_admin/assets/js/keen_pure_admin" let liveSocket = new LiveSocket("/live", Socket, { hooks: { ...PureAdminHooks } })
Module Structure
PureAdmin.Components-usemacro that imports all function componentsPureAdmin.Components.*- Individual component modules (Button, Badge, Alert, etc.)PureAdmin.Live.*- Stateful LiveComponents (CommandPalette, ToastLive, DialogService)PureAdmin.Helpers- BEM class builder utilitiesPureAdmin.Config- NimbleOptions configurationPureAdmin.Types- Shared type definitions