npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue3-rex-ui

v1.0.1

Published

A tiny Vue 3 UI library with Tailwind CSS

Downloads

16

Readme

vue3-rex-ui

Tiny Vue JS 3 UI Framework based on Tailwind CSS and Vue JS 3

Vue JS Seminar

Why is there a package?

I have been working with Vue JS for a long time and have always been annoyed by the fact that there is no UI framework that is as easy to use as Bootstrap was. So I decided to create my own UI framework. I have been working with Tailwind CSS for a long time and I am very enthusiastic about it. That's why I've decided to create a tiny, small UI framework based on Tailwind CSS and Vue JS 3.

Installation

Run npm or yarn installation of the vue3-head package:

yarn

$ yarn add vue3-rex-ui

npm

$ npm install vue3-rex-ui

Set Up your Vue Application

It requires only one line to install the package in your Vue application.

import { createApp } from 'vue'

import App from './App.vue'
import RexUI from 'vue3-rex-ui'

const app = createApp(App)

app.use(RexUI) // here the magic happens
app.mount('#app')

Every component is now available in your Vue application, because of automatic global registration.

Usage

App

This is the main component of the UI framework. It contains the header, main and footer components and is the main container for your application. You don't have to use it if you don't build e.g. a Single Page App and just want to use the atomic components like buttons, inputs, etc.

<rex-app>
  <rex-header>
    <rex-nav>
      <rex-nav-item>Home</rex-nav-item>
      <rex-nav-item>About</rex-nav-item>
      <rex-nav-item>Contact</rex-nav-item>
    </rex-nav>
  </rex-header>
  <rex-main>
    <rex-container>
      <rex-row>
        <rex-col>
          <rex-alert variant="success" size="md">This is a medium sized success alert</rex-alert>
        </rex-col>
      </rex-row>
      <rex-row>
        <rex-col>
          <rex-button variant="primary">Click me</rex-button>
        </rex-col>
      </rex-row>
      <rex-row>
        <rex-col>
          <rex-input-text placeholder="Enter your text here" v-model="yourTextVariable" />
        </rex-col>
      </rex-row>
    </rex-container>
  </rex-main>
  <rex-footer>
    <rex-nav>
      <rex-nav-item>Home</rex-nav-item>
      <rex-nav-item>About</rex-nav-item>
      <rex-nav-item>Contact</rex-nav-item>
    </rex-nav>
  </rex-footer>
</rex-app>

Alert

This is a simple alert component. It has a variant and a size property. The variant property can be one of the following: primary, secondary, success, danger, warning, info, light, dark. The size property can be one of the following: sm, md, lg.

<rex-alert variant="success" size="md">This is a medium sized success alert</rex-alert>

Button

This is a simple button component. It has a variant property. The variant property can be one of the following: primary, secondary, success, danger, warning, info, light, dark.

<rex-button variant="primary">Click me</rex-button>

InputText

This is a simple input text component. It has a placeholder property and a v-model property. The placeholder property is the placeholder text of the input field. The v-model property is the variable that is bound to the input field.

<rex-input-text placeholder="Enter your text here" v-model="yourTextVariable" />

Future Updates

I will add more components in the future. If you have any suggestions, please let me know. You can signup to the newsletter on my website Vue JS Seminar to get updates on the UI framework.

License

MIT with Linkware License. You can use this package for free in your projects, but you have to link to my website Vue JS Seminar in your project.

Resources

Software Tips