Check your Python version
To use Sapphire UI components, you need to have Python version 3.11 or above installed on your system.
python3 --version
Install Reflex (if you haven't already)
Sapphire UI components are built with Reflex. If you don't have Reflex installed, use the following command:
pip install reflex
Make sure the latest version of Reflex is installed:
reflex --version
Install the SapphireUI CLI
The Sapphire UI CLI allows you to easily add components to your Reflex project.
pip install sapphireui
Create or navigate to your Reflex Web Application
The `` CLI commands must be run from the root directory of your Reflex project (where your rxconfig.py file is located).
If you need to create a new Reflex app:
reflex init my_app_name cd my_app_name
Using the Sapphire UI CLI
For detailed instructions on how to use the Sapphire UI CLI to add components, wrapped React components, and themes to your project, please refer to the CLI Documentation.