Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/webyom/pant

Mobile UI Components built on Preact. Ported from Vant.
https://github.com/webyom/pant

Last synced: about 2 months ago
JSON representation

Mobile UI Components built on Preact. Ported from Vant.

Awesome Lists containing this project

README

        

# Pant

[![codecov](https://codecov.io/gh/webyom/pant/branch/master/graph/badge.svg)](https://codecov.io/gh/webyom/pant)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

Mobile UI Components built on Preact

Ported from [Vant](https://github.com/youzan/vant)

### Install

```bash
# Using npm
npm i pant -S

# Using yarn
yarn add pant
```

### Import base style

Import base style in your bootstrap file.

```js
import 'pant/es/styles/base.scss';
```

### Import component on demand

```js
import { Button } from 'pant/es/button';
```

### Components

- Basic Components
- [Button](https://webyom.github.io/pant/#/components/button)
- [Cell](https://webyom.github.io/pant/#/components/cell)
- [Image](https://webyom.github.io/pant/#/components/img)
- [Layout](https://webyom.github.io/pant/#/components/layout)
- [Popup](https://webyom.github.io/pant/#/components/popup)
- [Built-in Styles](https://webyom.github.io/pant/#/components/styles)
- Form Components
- [Checkbox](https://webyom.github.io/pant/#/components/checkbox)
- [Field](https://webyom.github.io/pant/#/components/field)
- [Form](https://webyom.github.io/pant/#/components/form)
- [NumberKeyboard](https://webyom.github.io/pant/#/components/number-keyboard)
- [PasswordInput](https://webyom.github.io/pant/#/components/password-input)
- [Picker](https://webyom.github.io/pant/#/components/picker)
- [Radio](https://webyom.github.io/pant/#/components/radio)
- [Switch](https://webyom.github.io/pant/#/components/switch)
- Action Components
- [ActionSheet](https://webyom.github.io/pant/#/components/action-sheet)
- [Dialog](https://webyom.github.io/pant/#/components/dialog)
- [Loading](https://webyom.github.io/pant/#/components/loading)
- [Notify](https://webyom.github.io/pant/#/components/notify)
- [Overlay](https://webyom.github.io/pant/#/components/overlay)
- [PullRefresh](https://webyom.github.io/pant/#/components/pull-refresh)
- [Toast](https://webyom.github.io/pant/#/components/toast)
- Diaplay Components
- [Lazyload](https://webyom.github.io/pant/#/components/lazyload)
- [List](https://webyom.github.io/pant/#/components/list)
- [Skeleton](https://webyom.github.io/pant/#/components/skeleton)
- [Sticky](https://webyom.github.io/pant/#/components/sticky)
- [Tag](https://webyom.github.io/pant/#/components/tag)
- Navigation Components
- [Tab](https://webyom.github.io/pant/#/components/tab)
- Business Components
- [Card](https://webyom.github.io/pant/#/components/card)
- [SubmitBar](https://webyom.github.io/pant/#/components/submit-bar)

### Preview

You can scan the following QR code to access the demo on mobile

### Docs

https://webyom.github.io/pant/