MisterMunchkin / mom-and-me-clinic

A Website for Mom and Me Clinic
https://momandme.clinic/
1 stars 0 forks source link

Migrate components to shadcn/ui #23

Open MisterMunchkin opened 1 year ago

MisterMunchkin commented 1 year ago

Found a better component library than material ui and hyper ui

Calendar

Skeleton

This is because we do not need useSwr since most of our data is non-changing, or doesn't even change at all. Some components we have are only client side because of useSwr. useSwr is a powerful tool but it's overkill for what we are doing. https://github.com/MisterMunchkin/mom-and-me-clinic/issues/24#issue-1864382660

This video explains how to use skeleton in shadcn/ui - https://www.youtube.com/watch?v=7MKEOfSP2s4

The good thing about shadcn/ui is that we only need to install what we need. Just go to the components list and copy the npx add command.

at the time of writing, I think we only need Calendar and Skeleton.