tv-button

buttons for nuxtjs powered by tailwindcss
22,606 5
Install
npm install tv-button
Latest Version:2.0.7
Vue:2
License:MIT
Last Updated:Nov 10, 2021
Links: GitHub  ·  npm
Maintainer: acidjazz

Test Javascript

This requires Nuxt.js with the Tailwind CSS module

Quick Setup

  1. Add the nuxt-tailvue dependency to your Nuxt.js project
npm install nuxt-tailvue
# OR
yarn add nuxt-tailvue
  1. Add button to the modules section of nuxt.config.js
{
  modules: [
    ['nuxt-tailvue', {button: true}],
  ]
}
  1. If you're using Purge, add this module to the content section of tailwind.config.js
module.exports = {
    content: [
      'node_modules/tv-*/dist/tv-*.umd.min.js',
  }

Features

ButtonGroup component

  • Works with themes

  <ButtonGroup>
    <PushButton group="left">
      left
    </PushButton>
    <PushButton group="middle">
      middle
    </PushButton>
    <PushButton group="right">
      right
    </PushButton>
  </ButtonGroup>

Combine with tv-icon

<PushButton>
    <IconCheck class="w-5 h-5 mr-2" primary="text-green-300" secondary="text-green-400"/>
    Pair with Icons
</PushButton>

Use as a nuxt-link

  • Button turns into a for proper navigation
<PushButton to="/about">
  About Us
</PushButton>

Related Packages

tailwind-config-viewer

View your Tailwind CSS config file...visually!

19,524,150 2,211
tailwindcss-themeable

multiple themes support for tailwindcss, with Dracula built-in

7,097 59
g123

水务项目demo

1,879 1
gurunkit

Vue UI Component Library Built with Tailwind CSS.

1,758
barati-ui

A gorgeous, feature-rich Vue 3 button component library built with Vite and Tail...

1,210

Version History

Version Released License
2.0.7 MIT
2.0.6 MIT
2.0.5 MIT
2.0.4 MIT
2.0.3 MIT