Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm basically doing the same thing as you but I'm also looking through Mantine's source code to complement it.

I haven't really grasped what slot are used for tho, can you share a tldr?



It's a set of conventions and utils allowing a parent component to mix properties into slot-aware children so they can be styled and configured to fit within the parent context.

https://react-spectrum.adobe.com/react-spectrum/layout.html#...

Too bad React doesn't have Vue slots built-in, but this is nice for streamlining component APIs. Works well with Tailwind classes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: