New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

spectra-ui

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spectra-ui

Spectra UI is a component library built in Vue 3 and TypeScript.

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

Spectra UI is a library full of functional and themeable components for Vue 3 and written in TypeScript.

This project is still in-development, and is fairly empty still, once it goes into a version 1 release it will be stable to use, but at the moment, it has two components, and both are fairly buggy still :P.

Features

  • Hand crafted components
  • Lightweight install
  • Written in TypeScript
  • Themeable components
  • Powered by Vue 3
  • Included providers
  • Built in Fetch HTTP library wrapper
  • Licensed under MIT

Install

You will need Vue.js version 3.0+.

# npm
npm install spectra-ui --save
# yarn
yarn add spectra-ui

Usage

All components

import { createApp } from 'vue';
import Spectra from 'spectra-ui';
import 'spectra-ui/dist/style.css';

createApp.use(Spectra);

Or individual components

import { createApp } from 'vue';
import { Modal, TagInput } from 'spectra-ui';
import 'spectra-ui/dist/style.css';

createApp
	.use(Modal)
	.use(TagInput);

Notes

If you are using npm link or installing it via a local folder npm install ./path/to/spectra-ui then in your config you will need to make sure vue is resolved from your project instead of the linked project, as well as making sure to disable symlinks.

const { resolve } = require('path');

module.exports = {
	chainWebpack: (config) => {
		config.resolve.symlinks(false);
		config.resolve.alias.set('vue$', resolve(__dirname, 'node_modules/vue'));
	}
}

Keywords

spectra

FAQs

Package last updated on 06 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts