0.9.2 • Published 5 months ago
ano-ui v0.9.2
Installation
pnpm add ano-ui
pnpm add -D unocss @iconify-json/tabler unocss-applet
Usage
Custom UnoCSS config(unocss.config.ts
):
import { defineConfig, presetIcons } from 'unocss'
// unocss-applet https://github.com/unocss-applet/unocss-applet
import { presetApplet, presetRemRpx, transformerApplet } from 'unocss-applet'
import { presetAno } from 'ano-ui'
export default defineConfig({
presets: [
presetApplet(),
presetRemRpx(),
presetIcons({
scale: 1.2,
extraProperties: {
'display': 'inline-block',
'vertical-align': 'middle',
},
}),
presetAno(),
],
transformers: [
transformerApplet(),
],
})
Update pages.json
file like below:
{
"easycom": {
"autoscan": true,
"custom": {
"^A(.*)": "ano-ui/components/A$1/A$1.vue"
}
}
}
Or use @uni-helper/vite-plugin-uni-components to scan components automatically.
import { defineConfig } from 'vite'
import Components from '@uni-helper/vite-plugin-uni-components'
import { AnoResolver } from 'ano-ui'
// https://vitejs.dev/config/
export default defineConfig({
// ...
plugins: [
// ...
Components({
include: [/\.vue$/, /\.vue\?vue/],
dts: 'src/components.d.ts',
resolvers: [AnoResolver()],
}),
],
})
And then enjoy it. Just use a button component like this:
<template>
<AButton>Button</AButton>
</template>
Acknowledgement
Tools
UI Frameworks
License
0.9.2
5 months ago
0.9.1
5 months ago
0.9.0
5 months ago
0.8.1
10 months ago
0.7.6
12 months ago
0.7.5
12 months ago
0.7.8
12 months ago
0.7.7
12 months ago
0.8.0
12 months ago
0.6.13-beta.0
1 year ago
0.6.12
1 year ago
0.7.2
1 year ago
0.7.1
1 year ago
0.7.4
1 year ago
0.7.3
1 year ago
0.7.0
1 year ago
0.6.9
1 year ago
0.6.8
1 year ago
0.6.10
1 year ago
0.6.11
1 year ago
0.6.3
1 year ago
0.6.2
1 year ago
0.6.5
1 year ago
0.6.1
1 year ago
0.3.0
1 year ago
0.4.5
1 year ago
0.4.4
1 year ago
0.5.0
1 year ago
0.4.1
1 year ago
0.4.0
1 year ago
0.4.3
1 year ago
0.6.0
1 year ago
0.4.2
1 year ago
0.2.0
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago
0.0.14
1 year ago
0.0.13
1 year ago
0.0.11
1 year ago
0.0.10
1 year ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago
0.0.0
2 years ago