lry

daisyui 的 modal 实现原理是啥

  •  
  •   lry · Nov 21, 2022 · 1951 views
    This topic created in 1298 days ago, the information mentioned may be changed or developed.

    文档 https://daisyui.com/components/modal/ 里的 demo 里只有 css

    只用 label 和 checkbox 就实现了模态框的打开关闭,这个原理是什么

    我在 create-react-app 和 tailwindcss 只需要在 tailwind.config.js 里加上 plugins: [ require("daisyui"),] 就能用了。。

    2 replies    2022-11-21 23:03:00 +08:00
    chloerei
        1
    chloerei  
       Nov 21, 2022   ❤️ 5
    刚好之前研究过,写了篇博客

    纯 CSS 实现 UI 组件的触发 https://geeknote.net/Rei/posts/1323
    lry
        2
    lry  
    OP
       Nov 21, 2022
    @chloerei 很有帮助
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1618 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 16:33 · PVG 00:33 · LAX 09:33 · JFK 12:33
    ♥ Do have faith in what you're doing.