tailvue
🚀 Features
- 🌔 All components and classes include dark-mode support
- 🔌 Programmatic toasts
$toast.show('this is a test');
$toast.show({
type: 'danger',
message: 'single action toast',
timeout: 6,
primary: {
label: 'UNDO',
action: () => $toast.show('you clicked UNDO')
}
})
- 🔌 Programmatic modals
$modal.show({
type: 'danger',
title: 'This is the title property',
body: 'This is the body property.',
primary: {
label: 'Primary Action',
theme: 'red',
action: () => $toast.show('Primary Button clicked'),
},
secondary: {
label: 'Secondary Action',
theme: 'white',
action: () => $toast.show('Clicked Secondary'),
},
})
- 🎪 Interactive playground! - just run
yarn; yarn dev
- ✨ Tons of other components that will be documented shortly!
Installation
NuxtJS v3
yarn add --dev @tailvue/nuxt
- Add this to your
nuxt.config.ts
modules: [
// ...
'@tailvue/nuxt',
],
Note If you are using Nuxt 2 you may need to put this in of the
buildModulesarray
Vue3
yarn add tailvue
import { useToast, useModal } from 'tailvue'
const $toast = useToast()
const $modal = useModal()
Icons
- All Icons are brought in via the Iconify Vue Component
yarn add --dev @iconify/vue
UnoCSS
- Install UnoCSS
- Add the following to your
uno.config.ts
export default defineConfig({
extract: {
include: [
...
"node_modules/tailvue/dist/tailvue.es.js",
],
},
tailwindcss
- Install tailwindcss
- Add the following to your
tailwind.config.js
module.exports = {
content: [
...
"node_modules/tailvue/dist/tailvue.es.js",
],
}
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 1.0.0 | MIT | |
| 0.1.68 | MIT | |
| 0.1.67 | MIT | |
| 0.1.66 | MIT | |
| 0.1.65 | MIT | |
| 0.1.64 | MIT | |
| 0.1.63 | MIT | |
| 0.1.62 | MIT | |
| 0.1.61 | MIT | |
| 0.1.60 | MIT | |
| 0.1.59 | MIT | |
| 0.1.58 | MIT | |
| 0.1.57 | MIT | |
| 0.1.56 | MIT | |
| 0.1.55 | MIT | |
| 0.1.54 | MIT | |
| 0.1.53 | MIT | |
| 0.1.52 | MIT | |
| 0.1.51 | MIT | |
| 0.1.50 | MIT | |
| 0.1.49 | MIT | |
| 0.1.48 | MIT | |
| 0.1.47 | MIT | |
| 0.1.46 | MIT | |
| 0.1.45 | MIT | |
| 0.1.44 | MIT | |
| 0.1.43 | MIT | |
| 0.1.42 | MIT | |
| 0.1.41 | MIT | |
| 0.1.40 | MIT |
Showing the latest 30 of 66. See every release on npm