How to Use Chakra UI with Next.js and React

Поделиться
HTML-код
  • Опубликовано: 9 янв 2025

Комментарии • 70

  • @colbyfayock
    @colbyfayock  5 месяцев назад

    Learn how to build a full stack Next.js app in my upcoming course: colbyfayock.com/course

  • @yashsolanki069
    @yashsolanki069 2 года назад +2

    I liked how did not go around using extra content on page and just used what was presented and explained how chakraUI is done. Excellent approach!!❤‍🔥

  • @JohnoScott
    @JohnoScott 2 года назад

    The fast pace is great. You present at the speed of thought. Thankyou

  • @bhupendrasinhthakre5267
    @bhupendrasinhthakre5267 2 года назад

    Wonderful tutorial on Chakra. Probably need more of these. Great work Colby

  • @colbyfayock
    @colbyfayock  Год назад

    Get fresh tutorials and other free content straight to your inbox! colbyfayock.com/news

  • @maskman4821
    @maskman4821 3 года назад +1

    This is definitely the best Chakra ui crash course !!!

  • @coder116
    @coder116 2 года назад +1

    Thank you Colby!! Excellent video. A precise explanation with a simple example, but covers the basis of Chakra ui. Congratulations. A very special greeting from Caracas-Venezuela.

    • @colbyfayock
      @colbyfayock  2 года назад

      thanks so much, glad you enjoyed! :)

  • @desmoulins6095
    @desmoulins6095 3 года назад +3

    lot's of information in a short amount of time, this is a great format thank you so much !

    • @colbyfayock
      @colbyfayock  3 года назад

      no problem, glad you enjoyed! :)

  • @midhatahir8104
    @midhatahir8104 3 года назад +1

    7 mins and tons of new info.
    Thanks Colby :)

  • @kylenhu916
    @kylenhu916 3 года назад +1

    You absolutely nailed it within 7 min! Big Like!!

  • @lovenangelodayola1826
    @lovenangelodayola1826 2 года назад

    Happened to just search for an overview of chakra, found this and it has all I need.

  • @seyolas3588
    @seyolas3588 3 года назад

    Short video short explanations great!

  • @sideshowlol
    @sideshowlol 3 года назад +1

    Yeah, that was amazing! Thank you Colby 🙏😎

  • @maddada
    @maddada 4 года назад +3

    Great explanation mate :D Subbed!

  • @zigzagt
    @zigzagt 4 года назад +2

    At 1:25 the close tag of ThemeProvider magically moved to the next line. How did you do that?

    • @colbyfayock
      @colbyfayock  4 года назад

      video editing 👀 sorry for the confusion. that happens to me all the time, would love an easy way to push to closing tag to the next line

    • @AllahomAnsorGaza
      @AllahomAnsorGaza 4 года назад +1

      yea :D
      i was wondering about it too

  • @sabinoramirez2600
    @sabinoramirez2600 2 года назад

    pretty clean. quality vid

  • @electrichimp
    @electrichimp 4 года назад +1

    Really enjoy Chakra for fast interations. I'm still not sure how to create variants of their different components though. For example, I've managed to create style variants for the Button component inside the theme... But when I do the same on other components, variants don't work the same way.

    • @colbyfayock
      @colbyfayock  4 года назад +1

      do you think you could provide a code example to show me what you mean?

    • @electrichimp
      @electrichimp 4 года назад

      @@colbyfayock Hi! Thank you for your interest. Well, I made a sandbox (codesandbox.io/s/chakra-variants-tn2jd ) with an example of a Button (which does allow me to extend the theme and create new variants), and two Inputs. Because variants don't work for me on the Input components, one of them is styled in a hacky way, and the other is just to show how variants don't work

    • @colbyfayock
      @colbyfayock  4 года назад

      @@electrichimp hm im not totally sure. looking through the docs, it looks like for that to work, you need to create your own component that consumes the variant theme 🤔 github.com/chakra-ui/chakra-ui/blob/a5a64c73f7493d828e7931ce09c77d8e398a6c9b/website/pages/docs/theming/component-style.mdx

    • @electrichimp
      @electrichimp 4 года назад

      @@colbyfayock hey, figured it out! Not necessarily: if the component already has variants, extending with the theme with the extendTheme function is enough... It wasn't working for the Input because the Input's variants expected an object with a "{field: [style]}" structure. If you follow that, you're golden 👍🏻

    • @colbyfayock
      @colbyfayock  4 года назад

      @@electrichimp ah cool thanks for the tip

  • @blessdarah1256
    @blessdarah1256 4 года назад +1

    I love this guy

  • @GRAVVVES
    @GRAVVVES 3 года назад

    You may want to update this tutorial. Chakra and Framer throw some wacky bugs when installing the latest versions.

    • @colbyfayock
      @colbyfayock  3 года назад

      Thanks for the heads up. Unfortunately RUclips doesn't let you update videos

  • @thangphan4528
    @thangphan4528 2 года назад

    Thank you so much.

  • @moose43h
    @moose43h 3 года назад

    how use next/image optimization when i use chakra components like avatar etc.

    • @colbyfayock
      @colbyfayock  3 года назад

      looks like you'd need to create your own component that pretty much does what the Avatar component does
      check out this tweet: twitter.com/NikolovLazar/status/1426239799820787715

  • @ethanliu4012
    @ethanliu4012 4 года назад +1

    Found chara-ui in github Next.js/examples/ folder. We can set-up from there easily.

  • @ringosingson5386
    @ringosingson5386 4 года назад

    What's ur take on chakra compare to other.. Like framer motion

    • @colbyfayock
      @colbyfayock  4 года назад +2

      i haven't used it enough to have a highly opinionated take on it. I think i like this a little better than Tailwind though, thats probably the only one ive dug into a lot, being that it feels like you can make the components work more nicely into another system than tailwind, where i would think tailwind you probably should go "all in" with tailwind for it to make sense. like, i could see myself using chakra components included in the sass modules that i typically prefer
      as far as framer motion, i think they're 2 different tools, where framer motion is more focused on the animations, but maybe you had particular overlap in mind?

  • @doritoflake9375
    @doritoflake9375 3 года назад

    Nice and succinct intro. I likes. :)

  • @mrnsbrown
    @mrnsbrown 9 месяцев назад

    Problem I'm facing is when you use any rich Chakra UI components, try adding a slider, just doesn't want to play ball

    • @colbyfayock
      @colbyfayock  9 месяцев назад

      if you're in the Next.js App Router, I wonder if you're running into an issue where you need to opt the component into a client component? i haven't used this in a little bit, so unsure. i would recommend searching GitHub Issues as well

  • @samwelokou4505
    @samwelokou4505 3 года назад

    Hi guys nice content. I got an error warning in the console that say...Expected server HTML to contain a matching in ......... please help!!.

    • @colbyfayock
      @colbyfayock  3 года назад +1

      hey hard to tel without seeing the code, typically that means something's not hydrating properly

  • @calvincrane
    @calvincrane 3 года назад

    Thanks Colby - you talk a little fast for me at times!

    • @colbyfayock
      @colbyfayock  3 года назад

      yeah ive been trying to slow down lately :) hopefully the newer videos are a bit easier to keep up with

    • @sideshowlol
      @sideshowlol 3 года назад +1

      @@colbyfayock I like the pace you set. It's always possible to pause the video.

  • @AllahomAnsorGaza
    @AllahomAnsorGaza 4 года назад

    please slow down we learning here from you boss ;)

    • @colbyfayock
      @colbyfayock  4 года назад

      yeah 😅 sorry, im working on it twitter.com/colbyfayock/status/1335693425908342785

  • @mister.z2260
    @mister.z2260 3 года назад +1

    This is the old version now ...

    • @colbyfayock
      @colbyfayock  3 года назад

      thanks, i added a note to the description

    • @mister.z2260
      @mister.z2260 3 года назад

      @@colbyfayock Thanks for sharing the lib, it's really awesome~

    • @colbyfayock
      @colbyfayock  3 года назад

      @@mister.z2260 np hope the videos still somewhat helpful with the new version!

  • @amirabasi-hz8gy
    @amirabasi-hz8gy 6 дней назад

    Bro it's not sim it is theme

  • @Maibes
    @Maibes 3 года назад

    so much text going off the right side of the screen ='(
    Still liked your vid tho

    • @colbyfayock
      @colbyfayock  3 года назад

      yeah it's hard to balance making sure the text is big enough for the tutorial, i'll try to be more conscious about adding line breaks for stuff like that, but some of the content in there was default Next.js HTML