9b395f5cc3
E2E Headed Chrome / e2e-headed (macos-15) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (ubuntu-latest) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (windows-latest) (push) Has been cancelled
CI / build (macos-latest) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
CI / unit-test (push) Has been cancelled
CI / bun-test (push) Has been cancelled
CI / adapter-test (push) Has been cancelled
CI / smoke-test (macos-latest) (push) Has been cancelled
CI / smoke-test (ubuntu-latest) (push) Has been cancelled
Security Audit / audit (push) Has been cancelled
Build Chrome Extension / build (push) Has been cancelled
Trigger Website Rebuild (Docs Updated) / dispatch (push) Has been cancelled
1.9 KiB
1.9 KiB
Uiverse
Mode: 🔐 Browser · Domain: uiverse.io
Commands
| Command | Description |
|---|---|
opencli uiverse code <input> --target html |
Export the raw component HTML |
opencli uiverse code <input> --target css |
Export the raw component CSS |
opencli uiverse code <input> --target react |
Export the React version shown in the Export dialog |
opencli uiverse code <input> --target vue |
Export the Vue single-file component shown in the Export dialog |
opencli uiverse preview <input> |
Capture only the component preview element, not the full page |
Input Format
<input> supports two forms:
- Full URL:
https://uiverse.io/Galahhad/strong-squid-82 - Short form:
Galahhad/strong-squid-82
Usage Examples
# Export HTML
opencli uiverse code "Galahhad/strong-squid-82" --target html -f json
# Export CSS
opencli uiverse code "Galahhad/strong-squid-82" --target css -f json
# Export React
opencli uiverse code "Galahhad/strong-squid-82" --target react -f json
# Export Vue
opencli uiverse code "Galahhad/strong-squid-82" --target vue -f json
# Capture only the preview element
opencli uiverse preview "Galahhad/strong-squid-82" --output ./uiverse-preview.png -f json
Notes
- The
codecommand resolves the componentpost.idfrom the detail page, then reads page loader data or the backing data endpoint. reactandvueexports depend on the page's Export dialog, so they require Browser Bridge and a working browser session.previewuses the component HTML root signature plus visible-page heuristics to crop the preview element only.- If
--outputis omitted,previewwrites the PNG to a system temporary path. --paddingdefaults to8pixels and adds extra space around the cropped component.
Prerequisites
- Chrome running
- Browser Bridge extension installed