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

vue3-tailwind-elements

v3.0.1

Published

A light library of components based on [Tailwind Elements](https://tailwind-elements.com/) and [Tailwind](https://tailwindcss.com/) for Vuejs 3. Requires **Vue 3.5+** and **Tailwind CSS v4**. For Vuejs 2, refer to [this package](https://www.npmjs.com/pa

Downloads

132

Readme

Vue Tailwind Elements

A light library of components based on Tailwind Elements and Tailwind for Vuejs 3. Requires Vue 3.5+ and Tailwind CSS v4. For Vuejs 2, refer to this package.

Playground — every component with live prop controls and the code that renders it · Documentation

Components

te-accordion · te-alert · te-badge · te-breadcrumb · te-button · te-button-group · te-calendar · te-card · te-checkbox · te-chip · te-date-picker · te-dropdown · te-file · te-icon · te-input · te-list-group · te-loading · te-modal · te-multiselect · te-notification · te-offcanvas · te-pagination · te-progress · te-radio · te-range · te-rating · te-scroll-to-top · te-select · te-spinner · te-stepper · te-switch · te-table · te-tabs · te-textarea · te-time-picker · te-toast · te-toast-light · te-tooltip

Plus the v-click-outside directive. All of them are registered globally by the plugin and can also be imported by name.

Installation

  1. Install Tailwind v4 following this guide.

  2. Install the package:

npm install vue3-tailwind-elements
  1. Register the plugin in your main.ts (or main.js):
import { createApp } from 'vue';
import App from './App.vue';
import Vue3TailwindElements from 'vue3-tailwind-elements';
import 'vue3-tailwind-elements/style.css';
import './style.css';

createApp(App)
  .use(Vue3TailwindElements)
  .mount('#app');
  1. Add one import to your stylesheet:
@import "tailwindcss";
@import "vue3-tailwind-elements/css";

Icons

te-icon renders Bootstrap Icons class names (bi bi-*) by default, so install the font if you use it:

npm install bootstrap-icons
@import "bootstrap-icons/font/bootstrap-icons.css";

social icons are inline SVG and need no font. To use a different set, pass family and register it when installing the plugin:

app.use(Vue3TailwindElements, {
  customIcons: {
    fa: { prefix: 'fa-', icons: { star: 'star' } },
  },
});

That is the whole setup. There is no tailwind.config.js and no content array to maintain — the stylesheet carries its own @source, so Tailwind finds the classes this library uses on its own.

Dropdowns in scrolling containers

Inside a table, a card with overflow: hidden, or any scrolling panel, an open dropdown gets clipped by its container. append-to-body moves it to <body> and keeps it anchored to the field as the page scrolls:

<te-multiselect append-to-body :options="options" v-model="picked" />
<te-date-picker append-to-body v-model="date" />

TypeScript

Types ship with the package. Global components are typed too, so <te-button type="primary"> is checked and autocompleted in templates with no extra setup. Individual components can also be imported directly:

import { TeButton, TeDatePicker } from 'vue3-tailwind-elements';
import type { Variant, Size } from 'vue3-tailwind-elements';

Upgrading to 2.0

Every prop, event and slot from 1.x still works. The major is for the stylesheet: te-modal and te-offcanvas are native <dialog> elements now, so they get Esc, a focus trap, focus restored to the trigger and an inert page behind straight from the browser — and the scrim moved with them.

If you never overrode those classes, there is nothing to do. If you did:

- .modal { background-color: rgb(0 0 0 / 0.8); }
+ dialog.modal::backdrop { background-color: rgb(0 0 0 / 0.8); }

- .offcanvas-backdrop { background-color: rgb(0 0 0 / 0.8); }
+ dialog.offcanvas::backdrop { background-color: rgb(0 0 0 / 0.8); }

Full notes in the upgrade guide.

Upgrading from 0.0.x

1.0.0 requires Tailwind v4 and replaces the JavaScript plugin with a stylesheet. In short:

  /* tailwind.config.js — usually deletable now */
- content: ['./node_modules/vue3-tailwind-elements/**/*.{js,ts,vue}'],
- plugins: [require('vue3-tailwind-elements/dist/plugin')],
  /* your stylesheet */
- @tailwind base;
- @tailwind components;
- @tailwind utilities;
+ @import "tailwindcss";
+ @import "vue3-tailwind-elements/css";
  /* main.ts */
- import 'vue3-tailwind-elements/dist/style.css';
+ import 'vue3-tailwind-elements/style.css';

vue and tailwindcss are peer dependencies now, and the bundled Bootstrap 5 stylesheet (.modal, .offcanvas, .navbar, --bs-*, …) has been removed. See the CHANGELOG for the full list of breaking changes and fixes.

Play with every component in the playground (its source lives here), or read the documentation.

Nuxt:

Put the plugin registration into a plugin file and use it in nuxt.config.ts like this:

...
  plugins: [
    { src: '~/plugins/vue-tailwind-elements.js', mode: 'client' }
  ],
...

Author

This library is created by Aarón Montes. Support me to improve and maintain this library

Contribution

Want to contribute? Great!. Open a new PR here or a new issue here

License

MIT