Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xbmlz/unocss-preset-components
https://github.com/xbmlz/unocss-preset-components
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xbmlz/unocss-preset-components
- Owner: xbmlz
- License: mit
- Created: 2024-08-14T04:31:10.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-14T05:20:02.000Z (5 months ago)
- Last Synced: 2024-10-29T01:21:47.497Z (2 months ago)
- Language: TypeScript
- Size: 70.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unocss-preset-components
A preset for [UnoCSS](https://github.com/antfu/unocss) that includes a set of components for common UI elements.
## Usage
Install the preset:
```bash
npm i -D unocss unocss-preset-components
```Add the preset to your `unocss.config.js`:
```js
import { defineConfig } from 'unocss'
import presetComponents from 'unocss-preset-components'export default defineConfig({
presets: [
presetComponents()
]
})
```