
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
@ulu/frontend-vue
Advanced tools
A modular and tree-shakeable Vue 3 component library for the Ulu frontend
Vue component library for the Ulu frontend ecosystem.
This library provides a set of reusable, themeable, and accessible Vue 3 components. It is designed to be modular, allowing you to import only the components and features you need, ensuring your application remains lightweight and performant.
Install the library and its required peer dependencies.
npm install @ulu/frontend-vue
Using the library involves three main steps: setting up the SCSS, registering the Vue plugins, and importing the components you need.
Import the main stylesheet into your project's primary SCSS file. This will bring in all the necessary styles for the components.
// Import Ulu Vue component styles
@use "@ulu/frontend-vue/scss" as ulu-vue;
// Configure
@include ulu-vue.plugin-toast-set((
"background-color" : gray
));
// Output (plugins/component) stylesheets that you use
@include ulu-vue.plugin-toast-styles();
This library uses a plugin-based system to configure core features and functionality. You'll need to register them in your main application entry point (e.g., src/main.js
).
The corePlugin
is required to set up the library's foundational settings, such as the icon system, which is used by many components.
// src/main.js
import { createApp } from 'vue';
import App from './App.vue';
import router from './router'; // Your vue-router instance
import { corePlugin } from '@ulu/frontend-vue';
const app = createApp(App);
app.use(router);
// Register the core plugin
app.use(corePlugin, {
// Optional: You can override default settings here.
// For example, to use FontAwesome's static CSS classes instead of the Vue component:
// fontAwesomeStatic: true,
});
app.mount('#app');
Other plugins for features like responsive breakpoints, global modals, and toast notifications can be registered as needed.
// src/main.js
import { breakpointsPlugin, modalsPlugin, toastPlugin } from '@ulu/frontend-vue';
// ...
app.use(breakpointsPlugin);
app.use(modalsPlugin, { /* your global modal configurations */ });
app.use(toastPlugin, { /* default toast options */ });
// ...
Components are designed to be imported individually. This approach is highly recommended as it allows build tools like Vite or Webpack to tree-shake unused components, keeping your final application bundle as small as possible.
Example:
<script setup>
import { UluButton, UluAlert } from '@ulu/frontend-vue';
</script>
<template>
<UluAlert type="success" title="Success!">
This is an alert component.
</UluAlert>
<UluButton primary to="/">Click Me</UluButton>
</template>
FAQs
A modular and tree-shakeable Vue 3 component library for the Ulu frontend
The npm package @ulu/frontend-vue receives a total of 956 weekly downloads. As such, @ulu/frontend-vue popularity was classified as not popular.
We found that @ulu/frontend-vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.