Sorry I've no time right now consider this a little bit outdated/archived.
The Universal UI Library
🥯Papanasi (pronunced pɑpənæʃ or papanash) is a UI library to use cross Frameworks. A set of components to use in Angular, Preact, Qwik, React, Solid, Svelte, Vue and Web Components. Is based on the Mitosis library and documented using Storybook.
Angular |
Preact |
Qwik |
React |
Solid |
Svelte |
Vue |
Web Comps. |
Nextjs |
Nuxt 3 |
Svelte Kit |
Solid Start |
Qwik City |
This library born as a pet project to create universal components, easy to extend in any project and easy to use with any framework, is based on the next principles:
Layout |
|||
Container |
Row |
Column |
Grid |
Components |
|||
Avatar |
Button |
Code |
Pill |
Spinner |
|||
Enterprise |
|||
Itchio |
|||
Extensions |
|||
Tooltip |
With npm:
$ npm install @papanasi/[target] # ex: @papanasi/react
With yarn:
$ yarn add @papanasi/[target] # ex: @papanasi/vue
To debug elements you can use setDebugLevel
function from @papanasi/[target]
package. This function is totally optional and the default value is DebugLevel.None
the recommended is to use DebugLevel.Log
to have a log of the different events happening.
window.addEventListener('load', () => {
setDebugLevel(DebugLevel.Log);
});
To learn more about Papanasi, check the documentation.
To build the project run:
> yarn compile
You can choose which frameworks to build by passing the --platforms
:
> yarn compile --platforms react vue
It is also possible to specify which components to build --elements
:
> yarn compile --elements avatar pill
If you want to disable the linting use --no-lint
:
> yarn compile --no-lint
To contribute and watch the changes in local environment just use:
> yarn dev
Finally, to launch storybook use:
> yarn start
Sponsor the project |
HelpDev |
And special thanks to @samijaber @mhevery and Builder project