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 🙏

© 2026 – Pkg Stats / Ryan Hefner

flxuicomponents

v0.1.8

Published

Vue 3 UI Component Library mit Tailwind CSS

Readme

flxuicomponents

Vue 3 UI Component Library mit Tailwind CSS

Installation in deinem Nuxt-Projekt

npm install flxuicomponents

Verwendung in Nuxt

Schritt 1: Tailwind CSS installieren (falls noch nicht vorhanden)

npm install -D @nuxtjs/tailwindcss

Füge in deiner nuxt.config.ts hinzu:

export default defineNuxtConfig({
  modules: ['@nuxtjs/tailwindcss']
})

Schritt 2: Komponenten verwenden

Methode A: Einzelne Komponenten importieren (empfohlen)

In deinen Vue-Komponenten oder Pages:

<script setup>
import { FButton } from 'flxuicomponents'
</script>

<template>
  <div>
    <FButton variant="default">Click me</FButton>
    <FButton variant="destructive" size="sm">Delete</FButton>
  </div>
</template>

Methode B: Als globales Plugin (alle Komponenten)

Erstelle eine Datei plugins/ui-components.ts in deinem Nuxt-Projekt:

import UiComponents from 'flxuicomponents'

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(UiComponents)
})

Dann kannst du direkt <FButton> ohne Import verwenden:

<template>
  <div>
    <FButton variant="default">Click me</FButton>
  </div>
</template>

Verfügbare Komponenten

FButton

<FButton variant="default" size="default">Default Button</FButton>
<FButton variant="destructive" size="sm">Small Destructive</FButton>
<FButton variant="outline" size="lg">Large Outline</FButton>
<FButton variant="ghost">Ghost Button</FButton>
<FButton variant="link">Link Button</FButton>

Props:

  • variant: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link'
  • size: 'default' | 'sm' | 'lg' | 'icon'

🎨 Tailwind CSS Konfiguration

Die Komponenten nutzen folgende Tailwind-Farben:

  • slate (für Standard-UI-Elemente)
  • red (für destructive Aktionen)

Stelle sicher, dass diese in deiner Tailwind-Konfiguration verfügbar sind (Standard in Tailwind v3+).

📦 Quick Start Beispiel

<script setup>
import { FButton } from 'flxuicomponents'
</script>

<template>
  <div class="p-8 space-y-4">
    <h1 class="text-2xl font-bold">Meine App</h1>
    
    <div class="flex gap-2">
      <FButton variant="default">Standard</FButton>
      <FButton variant="destructive">Löschen</FButton>
      <FButton variant="outline">Outline</FButton>
      <FButton variant="ghost">Ghost</FButton>
      <FButton variant="link">Link</FButton>
    </div>
    
    <div class="flex gap-2">
      <FButton size="sm">Klein</FButton>
      <FButton size="default">Normal</FButton>
      <FButton size="lg">Groß</FButton>
    </div>
  </div>
</template>

🚀 Development (für Contributors)

# Dependencies installieren
npm install

# Storybook starten (für Komponenten-Entwicklung)
npm run storybook

# Build erstellen
npm run build

# Package lokal testen
npm link
# In deinem Test-Projekt:
npm link flxuicomponents

📝 Publishing (automatisch via GitHub Actions)

Das Paket wird automatisch auf npm veröffentlicht, wenn auf den main Branch gepusht wird.

Manuelle Veröffentlichung:

# Version erhöhen
npm version patch  # 0.1.1 → 0.1.2 (Bugfixes)
npm version minor  # 0.1.1 → 0.2.0 (neue Features)
npm version major  # 0.1.1 → 1.0.0 (Breaking Changes)

# Automatisch veröffentlichen via GitHub Actions
git push --follow-tags

📄 License

MIT

🔗 Links