@discue/ui-components
ui-components
A collection of themeable vue.js components used in discue.io.
๐ฆ Installation
Install the package via npm:
npm install @discue/ui-components
๐ Usage
In your component files, import any ui component from the main export and use it in your template.
<template>
<NavLink href="#pricing">Go to pricing</NavLink>
</template>
<script setup>
import { NavLink } from '@discue/ui-components'
</script>
The list of currently available components can be found at ui.discue.io.
โจ Theming
To change the default theme, register the module as a Vue Plugin and pass an object with theme properties. Valid theme property keys can be found in theme.js and theme-keys.js.
import { theme } from '@discue/ui-components'
import { createApp } from 'vue'
import App from './App.vue'
createApp(App)
.use(theme, {
[theme.TEXT_COLOR_DEFAULT]: 'text-gray-500'
})
.mount('#app')
๐งช Running Tests
To run tests, run the following command
npm run test:unit
๐ License
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.7.0 | MIT | ||
| 1.6.0 | MIT | ||
| 1.5.0 | MIT | ||
| 1.4.0 | MIT | ||
| 1.3.0 | MIT | ||
| 1.2.0 | MIT | ||
| 1.1.0 | MIT | ||
| 1.0.0 | MIT | ||
| 0.49.0 | MIT | ||
| 0.48.0 | MIT | ||
| 0.47.1 | MIT | ||
| 0.47.0 | MIT | ||
| 0.46.0 | MIT | ||
| 0.45.0 | MIT | ||
| 0.44.0 | MIT | ||
| 0.43.0 | MIT | ||
| 0.42.0 | ^3.3.4 | MIT | |
| 0.41.0 | ^3.3.4 | MIT | |
| 0.40.0 | ^3.3.4 | MIT | |
| 0.39.0 | ^3.3.4 | MIT | |
| 0.38.2 | MIT | ||
| 0.38.1 | MIT | ||
| 0.38.0 | MIT | ||
| 0.37.0 | MIT | ||
| 0.36.1 | MIT | ||
| 0.36.0 | MIT | ||
| 0.35.0 | MIT | ||
| 0.34.0 | MIT | ||
| 0.33.0 | MIT | ||
| 0.32.1 | MIT |
Showing the latest 30 of 65. See every release on npm