Introduction
TapUI is a mobile-first UI library developed using Gem. It provides touch-friendly elements, stack navigation, sheets and automatic safe area handling, and it is also the foundation of the desktop UI library DuoyunUI.
Usage
NPM
Install:
npm install @mantou/tap-uiUse TapUI element:
import { html, render } from '@mantou/gem';
import '@mantou/tap-ui/elements/button';
render(html`<tap-button>Button</tap-button>`, document.body);Use element API:
import { Toast } from '@mantou/tap-ui/elements/toast';
Toast.open('error', 'An error occurred');ESM
Each element can be used independently from a CDN:
import('https://esm.sh/@mantou/tap-ui/elements/rolling-number');Feedback TapUI
Please visit GitHub
