Installation and Setup
1. Install the UI library
2. Import the styles
The Microapp UI library’s styles must be imported so that UI components are styled correctly. You can do this by importing the@microapp-io/ui/dist/style.css
file in your microapp.
Using Components
3. Import existing components
The full list of components in the Microapp UI can be found here: https://ui.microapp.io. Using them in your microapp is easy. Here’s an example using the<Button>
component:
4. Create new components
Microapp UI is built on Shadcn, so their command line interface (CLI) can be used to add components to your microapp. For example, to add an<Alert>
component, run the following Shadcn command:
<Alert>
component in the components
directory of your microapp. You can import and use it like any other component: