Add components, screens and blocks to your app from the terminal.
React Native items are published to the shadcn registry under the @lokalhost namespace. Register it once in components.json:
{
"registries": {
"@lokalhost": "https://localhostui.com/r/mobile/{name}.json"
}
}Then add anything by name:
npx shadcn@latest add @lokalhost/bottom-sheetThe CLI copies the source to components/ui, screens or components/blocks, installs npm dependencies and pulls in any other items it uses (for example, Modal also adds Buttons).
npx lokalhost@latest add bottom-sheet --flutterFiles are written to lib/widgets, lib/screens or lib/blocks, and pubspec.yaml dependencies are added with flutter pub add.
| Flag | Description |
|---|---|
--overwrite | Replace files that already exist. |
--path <dir> | Write to a custom directory. |
--yes | Skip the confirmation prompt. |
Registry endpoints
The mobile registry URLs above are the planned endpoints. Until they’re live, use the Manual tab on each page.