#Use threads
1 messages · Page 1 of 1 (latest)
rendering on client => sending javascript on the client that will handle creating the UI rendering on server => sending pure HTML and css
so it's better performance to render on server?
if ure using tailwind, the pure html and css is already sent so no more js to compile tailwindcss stuff
its better performance FOR YOUR browser to render on server but not for your server if it requires a lot of rendering
so Tailwind made the decision to render on client
if that's better for server, what's the issue?
no, tailwind is rendered on the server
oh
who is saying Tailwind is rendered on client?
but this "client" in NextJS appears to be an issue
he is confusing headlessui with tailwind pure
oh, yes i think so
its not... gosh...
it all depends on the case
are you building SSG or SSR or Client App
i asked what the issue is with "client" for headlessUI and got this link: https://nextjs.org/docs/getting-started/react-essentials#the-use-client-directive
that explains what “use client” is
Again, based on your case. What are you trying to build?
you should read through that regardless…
oh, you try to stay away from "use client"?
the bad thing about rendering on the client it may decrease performance
and its bad for SEO
seo. seo. seo. and ssr
but "use client" is forced with Tailwind Components, by the sounds of it?
but not regular tailwind?
NOOOOOOOOOO
so you'd try to stay away from it in elements that are SEO important
n o XD
lol sorry i misundestand
headlessui != tailwindcss
YES
use Client isn't needed in regular tailwind
i thought tailwind components use headlessui?
headlessui USES tailwind.
ohhh
not the other way
headlessui is a tailwind alternative?
bonk
they are not connected
bonk (2)
built by the same team?
tailwind uses css , headlessUI uses tailwind
or different teams
@tulip bison you need to rewatch this https://www.youtube.com/watch?v=CQuTF-bkOgc
UI libraries are important! I think about them a lot and I hope this video helps you think about them too. Very very very overdue one.
TailwindCSS, MaterialUI, Chakra, Bootstrap, Radix, React-Aria, Master.co, and more 😅
ALL MY CONTENT IS FILMED LIVE ON TWITCH AT https://twitch.tv/theo
ALL MY BEST MEMES ARE ON TWITTER FIRST https://twitter.com/...
this already clears all of your confusion
especially this
to clarify why HeadlessUI =/= tailwind
you STILL need to use CLIENT to make interactive components regardless whatever library you choose
its not a "use client" good or bad thing, it all depends on how you choose to use it
its like a Knife, it can be used to hammer a nail, or cut a tenderloin
not with server actions
he can barely even get started and now ure introducing more /jk ure true
so he shows TailwindUI as his go to, rather than DaisyUI, and then it's just copy & paste source code
but there is something preventing ppl from stealing this source code without paying? I don't understand that part, how that works
maybe an NDA? idk
but if you can create it yourself why look for paid resource
shadcn is building one, tailwindcss components
time saver
daisyui exists, you can pair it with headlessUI/radix
he says he prefers TailwindUI, rather than DaisyUI, but doesn't really go into the details of why
just "Tailwind Fanboy"
whatever that means
I guess it looks better, if I compare the two
TailwindUI is like an Apple product
DaisyUI is like a Microsoft product
haha, i dunno
no its 2 different thing
not jsut looks
tailwindcss is bare css
daisyui is ready-made UI
you said its a time saver so i propose you use ready made UI
you said you want it performant so it has to be prerendered so can't have things like MUI or Chakra since its loaded, client rendered
you said you don't want to pay 300 dallah so Tailwind Components is out of the question
and you're left with DaisyUI
what about https://www.radix-ui.com/?
Just because someone didn't use it doesn't meant that you can't use it
you NEED TO FOLLOW YOUR CASE. what do you need?
I think I prefer the design style of Radix over Daisy
oh my god
what design style are you talking about, theres no comparison in design style between radix and daisy
https://www.radix-ui.com/docs/primitives/components/navigation-menu
https://daisyui.com/components/navbar/
aren't these comparisons? with pre-built components for navbars, for example
Radix looks a lot better
haha
when you find out Radix comes in unstyled
and you need to style the components on your own
you can't just copy and paste this Radix navbar into your NextJS + Tailwind project?
copy paste from where
it's confusing, i should continue watching the video. maybe he will convince me to just pay for TailwindUI
from here
idk, probably understand what these different circle meant?
you seem to be mixing them all together
yes, I think so
I'm coming from CSS3 core web technology and this feels like jumping into ice cold deep waters, just for styling a website lol
but with enough understanding hopefully I won't get eaten by sharks 😛
right now i'm drowning, so to speak, lol
so
components have Logic part and Style part
Radix provides component Logic
Tailwindcss provides Style
Ready Made UI library already contains both logic and style
LOL. apparently using Bootstrap is negative on the beauty scale
worse than no CSS at all
need to remind you that some of that might be biased
yep, for sure
I think ppl are just sick of Bootstrap looking sites, and he gives a good point how there are too many changes in the CSS you gotta do, to modify Bootstrap
if you look at the actual CSS being used, it's pretty ugly
yes
like 50 declarations for a simple button style
right
and I kinda wanna stay away from "Component Libraries"
MUI, Mantine
I think I understand now
Radix is a "Behaviour Library"
I just need Tailwind for CSS++ features, and something like TailwindUI for a nice Style System
Or DaisyUI to save money on a Style System, but not be as nice as TailwindUI
does that sound about right?
yeah thats better
dunno about radishes kek but the other ones are right
Radix is not grouped with TailwindUI and DaisyUI
I will ignore Bootstrap altogether shudder
yeah, apparently it's not the same thing as a "Style System"
its like premade usestate and useeffect components (and context)
its a fuckin component library
people try to make up new words
No, a component library is MUI, Mantine
its a component library. end of story
No.
yeah but we need new word to categorize styled component library and unstyled component library
mui. and headless ui literally have the same components. mui just has more
its 2 different pattern
headlessUI is headless... MUI needs top level context
no it doesnt. thats only if you want a global theme
you can literally use it the same way
i dont care how much yall wanna split hairs. they are component libraries. one has more featues. but they are both libraries of components
yeah
we're like discussing different types of component libraries
do you want to get bald like me
mui is a highly opinionated, fully featured component library
thats why you have the unstyled, a.k.a behavior libraries
headlessui is a highly unopinionated, barebones component library
i am not using new entire words for something that doesnt need it. we have descriptive words for a reason
behavioral is an adjective to describe a noun wdym 💀
“stop trying to make fetch happen” - mean girls haha
im too old to fight the ever changing buzzwords. ill describe the features or lack thereof of the component library and call a spade a spade
but you are right, its a term made by theo and its only based on his preference
could've worded it better
css++ is stupid too
its a css framework
so is sass
he just wants to be different
@tulip bison this is what matters. when you walk up to a dev older than… i dunno… 25ish… and say “behavior library” they are gonna roll their eyes at you and walk away
if you ask them for an unstyled component library chances are they will have a suggestion
OK
@woeful pendant do you only get to view all 500+ components after payment and sign in?
lol, I was wondering how they could prevent "View Source", but now I get it
how often do they update it?
would there be any way to "see" all 500+ components before paying?
and its all html / tailwind. a few things use headlessui
so its not a library. more of a copy paste as you need it
so long as Tailwind will be around for a long time to come
headlessUI is more for accessibility? https://www.a11yproject.com/
so only certain elements would need that, like navbar, inputs, dropdowns, etc.
um… no
its just 8 components
oh, but TailwindUI handles all that, right?
8 unstyled components
no need to worry about a11y with TailwindUI
i dont do the a11y stuff so i have no opinion on that
Accessibility is a feature of headlessui.
Compinent logic doesnt come with accesebility and you need to add your own implementation of the accesibility, following html standards
you mean there are only 8 components that actually use "HeadlessUI", out of the 500+ components?
headlessui has 8 components
go to the site
look at it
thats all it is
so all 10 of these require JS of some sort, ya?
to work correctly
therefor, it must go to the client
disclosure and dialog are basically the same thing
correct
Wdym
and that's what Radix does. Only the JS part, the "behaviour"
Disclosure are accordions, dialogs are modal or popups
look at the source. the only difference is that one enforces 1 at a time.
but you can make a dialog have multiple sections, and you can make a disclosure only have 1 section
they have a whole discussion on it on the github discussions page
Its 2 different ui component many fe engineer will be mad at you 💀
With different uses
sure. lemme change 1 param and call it something else
call a spade a spade
9 components
😂
You can do that but the purpose would still be different
does this include Figma files of any type?
Disclosure is like to hide and show content while dialog just shoves the thing up to your face
Dialog uses portal
I am malding
hear me out
thats called a damn accordian
and has been for years
so no way to preview all 500+ components before purchasing All Access?
nope
and all templates (how many in total for All Access?)
a lot. im not gonna count them but theres a whole whole lot
i dont make any money from them… i just think its well spent money if you are serious
They cant have figma files or it will be easily shared
right
yeah, I am reading no design files, and also they have 30 day refund
so if i don't like it I can get money back
maybe i will give it a try, it does seem like the crown jewel for all options out ther
Yeah and when you refund it you have to remove all tailwindui component /j
goes without saying
this goes back to the first question, about "View Source", how do they know you have removed all tailwindui components from your website?
there was some word "Alias" or something that was said I didn't understand
some sort of technology for how they can check?
No, alias just mask the classname to something else so you cant easily copy paste them
oh
so it's an honor system if you get refund, to remove all tailwindui
just wondering, not that i would do that
Idk, @woeful pendant say it goes without sayin so i assume he know what happens
Scary
(wife is a laywer she likes to read that drivel haha)
I live in the sea they cant sue me
ariel? is that you?
like i wonder if anybody has posted all 500+ components to a GitHub repo somewhere lol.. probably a bad idea with TOS..
but kids are doing it these days with all types of software, and staying anonymous, so i wouldn't be surprised
part of your world ~
these people made tailwindcss for free. people gotta eat. pay people for stuff thats worth it comeon
Definetly not github probably mega.nz or filezippy 😭
apparently this is allowed!
crazy..
Lemme tell you a story of a certain book, called “refactoring ui”, written by the same authors as tailwind, listed at 99 dollars and its pdf is literally in several anonymous github repo
They can sue yes, but they mostly trust their customers
They don’t have a team focusing on finding their product being illegally used or distributed elsewhere
If you are a software developer you should make enough money to never worry about this kind of thing
true
calculated loss
Get the Refactoring UI Complete Package to share with your entire team.
$2,749 USD
doesnt change the fact that im a student and im broke
They are not for the same thing
The book teaches you UI design
Someone want to know how to create tailwindui vs just using tailwindui i guess?
$2,749 USD, I guess you save $1000 compared to 25 individual purchases
Tailwind UI gives you designed components
They are just not the same thi g
Alright since I don’t want to go bald, have fun
maybe for a company like Uber to make their own design system: https://baseweb.design/
lol alright no preview
too many ppl using it for the wrong reasons maybe heheh