Coder Social home page Coder Social logo

daief / daisyui-vue Goto Github PK

View Code? Open in Web Editor NEW
153.0 153.0 9.0 11.17 MB

(WIP) Vue3 UI components based on daisyui.

Home Page: https://daief.tech/daisyui-vue/components/button

License: Apache License 2.0

JavaScript 0.64% TypeScript 88.40% Less 1.83% CSS 9.13%
daisyui taildwind vite vue3

daisyui-vue's Introduction

  • šŸ‘‹ Hi, Iā€™m @daief

daisyui-vue's People

Contributors

daief avatar wey-gu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

daisyui-vue's Issues

Forking the repo: error yarn install.

This is error I get:

yarn install v1.22.19
info No lockfile found.
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.npmmirror.com/@dv%2fdevelop: [NOT_FOUND] @dv/develop not found".
info If you think this is a bug, please open a bug report with the information provided in "/home/anthony/Projects/daisyui-vue3/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

feature request: provide safelists in tailwind.config

concatenated class names will not be detected by tailwind according to this tailwind's document.
meanwhile tailwind has an safelisting option to keep those classes from being filtered out.

It would be much more convenient to have some pre-defined safelists for users to import.
(I would assume that SSR renderes first page without critical styles will also be fixed with this.)

// safelist
export const button = [
    {
      pattern: /btn-.+/
    }
]
// tailwind.config.js
const { button } =  require('daisyui-vue/config/safelist')

module.exports = {
  safelist: [
     ...button,
  ]
}

Tabs don't record value

Environment:

  • JavaScript
  • Vite 3.0.0
  • Vue 3.2.37
  • Tailwind 3.2.1
  • daisyui 2.33.0

This is my code:

    <Tabs v-model="currentTab" type="boxed" size="xs">

      <Tab name="rta" title="Acquire">
      Acquire
      </Tab>
      <Tab name="rts" title="Share">
       RTS
      </Tab>

      <Tab name="rtu" title="Upgrade" />
      <Tab name="rtb" title="Backhaul" />
    </Tabs>
...
export default {
  data () {
    return {
      currentTab: 'rts'
    }
  }
}

The currentTab doesn't change. When follow the sample code:
In script setup:
const currentTab = ref('rts');

<Tabs v-model={[currentTab.value, 'value']}>
I get an error:
image

The value of currentTab doesn't change:
image

Select Upgrade:
image

Putting class on TabPanel doesn't work

Putting a class on <TabPanel> doesn't get passed down to the html
so this:
<TabPanel name="1" title="Login" class="rounded-xl m-0">
resutls in this <div class="dv-tab-content">

How to style with tailwind?

I noticed in version 0.0.1-alpha.5 that the tailwind styling from tailwind.config.js would transfer over to this library. Then as of version 0.0.1-alpha.6 styling/themes from tailwind.config.js including daisy themes don't pass over anymore. Is there a way for those themes to pass over?

Thanks!

Themeing for components

Greetings I have set up a project so that I have both the regular daisyui css components installed as well as these vue components. i have a theme set in my tailwind.config.js but the issue is that the components from daisyui-vue are not respecting that theme. Is there a way to configure this or to set the theme for daisyui-vue separately? There appears to be a way to set a theme but I could not find documentation on how to do that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.