An open API service indexing awesome lists of open source software.

https://github.com/ping-maxwell/multiui-template-v1

This is the official template for creating MultiUI components.
https://github.com/ping-maxwell/multiui-template-v1

component multinite multiui

Last synced: 3 months ago
JSON representation

This is the official template for creating MultiUI components.

Awesome Lists containing this project

README

        

# MultiUI Component Template

### This is an official starter template for creating a component for MultiUI.


## ๐Ÿค” What's inside

This project is a simple TurboRepo project containing the following folders:

- `packages/component`: Contains the source code for your component.
- `apps/demo-app`: Contains the source code for a NextJS demo app to render your component.


## โญ๏ธ How do I get started?

We recommend you read our documentation on creating a component for MultiUI:
https://multiui.org/docs/components/create-component

To get started, follow these steps:
1. install the dependencies:
```sh
pnpm install
```

2. Start development:
```sh
pnpm dev
```

There should be two instances running:

- NextJS dev server.
- TypeScript dev server watching your component.

You can now edit your component in the `packages/component/src` folder and see the changes in your browser.


## ๐Ÿงช What's next? Building, Testing & Linting

To build your component, run the following command:

```sh
npm run build
```

To test your component, run the following command:

```sh
npm run test
```

To lint your component, run the following command:

```sh
npm run lint
```


## ๐Ÿ“œ What about publishing?

To publish your component, we recommend you read our documentation on publishing a component for MultiUI:
https://multiui.org/docs/components/publish-component