Copies one or more Shadix components into your Phoenix application,
rewriting Shadix.* module namespaces to match your app.
Usage
mix shadix.add button card alertOptions
--namespace— target base module namespace (default:<AppModule>Web.Components.UI)--dir— target directory to write files into (default:lib/<underscored_namespace>)--hooks-dir— target directory for JS/TS LiveView hook files (default:assets/js/hooks)--force— overwrite existing files (default: false, skip existing)
What it does
- Resolves transitive dependencies (e.g.
buttonpulls incn) - Rewrites
Shadix.Components→<namespace>andShadix.Cn→<namespace>.Cn - Writes files to the target directory
- Prints a summary and a reminder to run
mix shadix.initif not done yet