This repo contains the shared components and style system for building UIs aligned with the general Mirascope brand.
It is still in relatively early stages and some parts (e.g. theme support) are not yet fully fleshed out or integrated from consumers like mirascope/lilypad and mirascope/website.
This repo is intended to be the source of truth for all the components—i.e. if you need to make a change, please make the change here in the registry and then import it downstream into your project. By doing things this way, we hope to maintain a high degree of consistency between UIs across the Mirascope ecosystem.
To use components from this registry in your project:
# Install the CLI tool
bun add -D @mirascope/ui
# Initialize your project
bunx mirascope-ui init
# Add components (automatically syncs if already exists)
bunx mirascope-ui add button dialog
# Sync all tracked components
bunx mirascope-ui sync
The components will be installed to ./mirascope-ui
at the root of your project (alongside package.json
).
For complete CLI documentation, see CLI.md.
This section covers developing the registry itself (adding new components, testing, etc).
https://ui.shadcn.com/docs/registry
- Create a file inside
registry
- Update
registry.json
and append a new registry-item - Build registry
bun build
bun run typecheck
bun test
Use the mirascope-ui
CLI command (see above). Note it has --local
and --target
options which facilitate testing
locally current versions of the components in your target destination of choice.
Start Storybook
bun storybook
Everything in this repository is licensed under the MIT License except for "Williams-Handwriting-Regular-v1.{x}.tff", which is a closed license font and not available for use without express permission.