5 AlpineJS Plugins You Need To Know About (& bonus tool)

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 22

  • @Tanjiro-ju4uu
    @Tanjiro-ju4uu 2 місяці тому +1

    Another great video josh!

    • @joshcirre
      @joshcirre  2 місяці тому +1

      Thank you for watching! ☺️

  • @omamokejeffrey5626
    @omamokejeffrey5626 2 місяці тому +1

    Alpine JS is heavily underrated , I've done a lot of React-Like operations with alpine js with
    django

  • @hamm8934
    @hamm8934 2 місяці тому +4

    Really struggling to get into the mindset of using HTMX with Alpine and considering just dropping HTMX all together and just making fetch calls with alpine.

    • @joshcirre
      @joshcirre  2 місяці тому +1

      Check out AlpineAJAX too! :)

  • @muhammadasadshafiq5189
    @muhammadasadshafiq5189 2 місяці тому +3

    Do you know a package for validation ? I have an app with large form like 10-15 fields and i want to validate on client side ? Let me know how to handle it with alpine js.

    • @MatteoPresot
      @MatteoPresot 2 місяці тому

      Laravel Precognition

    • @windows07
      @windows07 2 місяці тому +1

      There is a way to do real time validation in live wire I think

    • @muhammadasadshafiq5189
      @muhammadasadshafiq5189 2 місяці тому

      @@windows07 I want to do it in alpine js not in livewire

    • @joshcirre
      @joshcirre  2 місяці тому +1

      I haven't needed too much since I use Laravel for validation, but this is a plugin I've heard talked about quite a bit!
      js.hyperui.dev/examples/form-validation

    • @muhammadasadshafiq5189
      @muhammadasadshafiq5189 2 місяці тому

      @@joshcirre thanks i will check this out. I just want to use it because i want to take payment from client using stripe js and I'm unable to crack the code with laravel validation. Because if i take the payment first and then something missed out at server end so it's hard to track that.

  • @suikolaravel
    @suikolaravel 2 місяці тому

    Hi Josh, may I ask what font do you used for sidebar vscode there?

    • @wodashekaf
      @wodashekaf 2 місяці тому

      Maybe he mentioned it in this video of his minimal vs code setup ua-cam.com/video/uoqhrFRuRF4/v-deo.html

    • @joshcirre
      @joshcirre  2 місяці тому

      Sure! This is the Dank Mono font.

  • @Richardritchie-w1f
    @Richardritchie-w1f 2 місяці тому +1

    Great content as usually. My personal thoughts on alpine: with tailwind the code looks fking ugly as fk at one point. Hard to read. You can convince me more on how it's cool and stuff but it's a liquid pain out of my eyes every time I open a penguin ui (way better that dojo ui btw) component and trying to understand what's is going on. Let's combine it with php syntax and you done. Cheers

    • @joshcirre
      @joshcirre  2 місяці тому +2

      I think a lot of those components are meant to be used as one-offs when you need them and if you need them for more, I think that's where Laravel Components come in handy.
      One thing you might find handy is taking the data out of the inline Alpine component and moving it to it's own script tag. :)

    • @duckeggcarbonara
      @duckeggcarbonara 2 місяці тому +1

      Consider a couple alternatives:
      1. The Tailwind Fold extension for VS Code
      2. An alternative CSS library that isn't utility-based like Pico CSS
      3. Moving things into an external script tag

    • @Richardritchie-w1f
      @Richardritchie-w1f 2 місяці тому

      @@duckeggcarbonara thank you. Vue solves a lot of problem for me. I'm just started but already in love. Mature and well polished approach of spa is unbeatable. Tall stack is not for me sadly. I'm not jumping on hype train, nah. I even made a WordPress theme with alpine.js, I don't wanna tell you how nav menu controller code looks like.. Tailwind + alpine + navi by log1x becomes wall of unreadable code.. bro

    • @duckeggcarbonara
      @duckeggcarbonara 2 місяці тому

      @@Richardritchie-w1f Vue uses a lot of the same patterns as Alpine does. If you move some of the Alpine code to an external script tag, it'll look very similar.

  • @nlveej
    @nlveej 2 місяці тому

    nice video