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

vue-daisyui-components

v0.1.12

Published

Vue Daisyui Components by MkaY

Readme

Vue Daisy Components

DaisyUI Komponenten mit Vue 3 <script setup lang="ts">, TailwindCSS und FontAwesome. Die vollstaendige Komponentenliste mit Links zur jeweiligen daisyUI-Dokumentation steht in components.md.

Struktur

  • components/ enthaelt alle Daisy-Komponenten als Daisy*
  • interfaces/ enthaelt Komponenten-Props und gemeinsam genutzte Interfaces
  • types/ enthaelt wiederverwendbare Type-Aliase und Variant-/Breakpoint-Typen
  • Kleine Dateien in types/ exportieren Komponenten-Props fuer bestehende Importpfade erneut

Die Komponenten verwenden Runtime-Props. Externe Interfaces bleiben fuer die TypeScript-Typisierung erhalten, muessen aber vom Vue-SFC-Compiler nicht ueber das Dateisystem aufgeloest werden.

Der Regressionstest fuer die Kompilierung ohne fs-Adapter laesst sich mit node --test tests/runtime-props.test.mjs ausfuehren.

Tailwind CSS und Typography

Importiere die CSS-Datei einmal in deiner Anwendung und verarbeite sie mit deiner Tailwind-CSS-4-Integration:

@import "vue-daisyui-components/styles.css";

Sie aktiviert daisyUI und @tailwindcss/typography und registriert die Komponenten als Tailwind-Quellen. Verwende diesen Import statt separater Tailwind-/daisyUI-Plugin-Imports, um doppelte Styles zu vermeiden.

Hero, Card, Accordion und Collapse verwenden prose in ihren Inhaltsbereichen. prose-daisy passt die Textfarben an das aktive daisyUI-Theme an. Eigene Bedienelemente innerhalb dieser Inhalts-Slots sollten mit not-prose umschlossen werden. Hero-Aktionen und Card-Aktionen liegen bereits ausserhalb der Typography-Stile.

Beispiel (Nuxt)

Farbvarianten werden ohne Klassenpraefix angegeben. Die Basisklasse bleibt erhalten: DaisyAlert variant="warning" rendert alert alert-warning, DaisyButton variant="primary" rendert btn btn-primary und DaisyBadge variant="success" rendert badge badge-success. Die vollstaendigen Farbklassen sind statisch hinterlegt, damit Tailwind sie auch beim Scannen der Bibliothek erkennt.

<template>
  <DaisyButton
    variant="primary"
  >
    Primary Button
  </DaisyButton>
</template>

DaisyHero

Textgroessen akzeptieren Tailwind-Namen ohne text--Praefix: xs, sm, base, lg, xl, 2xl bis 9xl. Ohne Angabe bleibt die bisherige Groesse erhalten.

| Komponenten | Props | | --- | --- | | DaisyHero, DaisyCard | titleSize, descriptionSize, actionSize | | DaisyAccordion, DaisyCollapse | titleSize, descriptionSize | | DaisyAlert | titleSize, messageSize, closeSize | | DaisyHeadline | titleSize | | DaisyLabel, DaisyDivider, DaisyBadge | labelSize | | DaisyModal | closeSize | | DaisyButton | textSize |

Die Props stylen die eingebauten Textbereiche bzw. deren Slot-Container. Eigene Elemente mit expliziten Schriftgroessen in Slots behalten ihre Groesse.

<script setup lang="ts">
import DaisyHero from "vue-daisyui-components/components/DaisyHero.vue";

const handleCtaClick = () => {
	console.log("Hero CTA clicked");
};
</script>

<template>
	<DaisyHero
		title="Build something great"
		title-size="4xl"
		description="A responsive hero section styled with daisyUI and Tailwind CSS."
		description-size="lg"
		cta-text="Get started"
		image-url="/images/hero.webp"
		image-alt="A preview of the product"
		layout="side"
		variant="primary"
		class-name="min-h-96 rounded-box"
		@cta-click="handleCtaClick"
	/>
</template>

Use the actions slot to provide custom CTA content. Set bg-image to use a background image with an overlay.

DaisyStat accepts a figure slot for an icon or image. Use DaisyStatIcon with a Font Awesome icon definition, or DaisyStatImage with an image source:

<script setup lang="ts">
import { faDownload } from "@fortawesome/free-solid-svg-icons";
import DaisyStat from "vue-daisyui-components/components/DaisyStat.vue";
import DaisyStatIcon from "vue-daisyui-components/components/DaisyStatIcon.vue";
import DaisyStatImage from "vue-daisyui-components/components/DaisyStatImage.vue";

const downloadsIcon = faDownload;
</script>

<template>
	<DaisyStat title="Downloads" value="31K" desc="Jan 1st - Feb 1st">
		<template #figure>
			<DaisyStatIcon :icon="downloadsIcon" color="secondary" />
		</template>
	</DaisyStat>
	<DaisyStat title="New users" value="4,200" desc="This month">
		<template #figure>
			<DaisyStatImage src="/images/avatar.webp" alt="New user" />
		</template>
	</DaisyStat>
</template>