A reusable component library for Vue 3, built with TypeScript. Designed to provide a consistent UI/UX for Greenspark projects.
npm install @getgreenspark/gs-componentsor using yarn:
yarn add @getgreenspark/gs-componentsYou can register all components globally in your Vue app:
import { createApp } from 'vue'
import App from './App.vue'
import gsComponents from '@getgreenspark/gs-components'
import '@getgreenspark/gs-components/gs-components.css'
const app = createApp(App)
app.use(gsComponents)
app.mount('#app')To reduce bundle size, import only the components you need:
<script lang="ts">
import { GsButton } from '@getgreenspark/gs-components'
</script>
<template>
<GsButton>Click Me</GsButton>
</template>| Component | Description |
|---|---|
GsButton |
A customizable button component |
More components and documentation coming soon.
git clone https://github.com/getgreenspark/gs-components.git
cd gs-components
npm install
npm run devThis project is licensed under the MIT License. See the LICENSE file for details.