Skip to content

destyler/destyler

Repository files navigation

Destyler

unstyled component for vue.

NPM version NPM Downloads Docs & Demos Components Count
GitHub stars

Features

  • On demand Import - Provide resolver to automatically import only used components.
  • Typescript Supported - Support TypeScript & type checked & type inference.
  • Unstyled - easily customizable and great for building design system and web apps.

Install

pnpm install destyler

On-demand Import

You need to use an additional plugin to import components you used. First you need to install unplugin-vue-components and unplugin-auto-import.

pnpm install -D unplugin-vue-components unplugin-auto-import

Then add the code below into your Vite config file.

// vite.config.ts
import { defineConfig } from 'vite'
import Components from 'unplugin-vue-components/vite'
import { DestylerUIResolver } from 'destyler/resolver'

export default defineConfig({
  // ...
  plugins: [

    Components({
      resolvers: [
        DestylerUIResolver(),
      ],
    }),
  ],
})

Credits

All credits go to these open-source works and resources