Back to blogs
Loading article…
Blog
Longer posts — published here first, then cross-posted to Dev.to with a canonical URL back to this site.
Back to blogs
Back to blogs
Posttailwindcss, react, minimal, loading
tailwind css has an animate class which you can use to accomplish some fun things minimal...
Date published

Why You Might Still Pick Next.js Over TanStack Start From a TanStack Start...

A complete theme management system for React applications with SSR support! ✨ 🌟...

slides used in the presentation building the generic component In this example we'll use...
tailwind css has an animate class which you can use to accomplish some fun things
1import React from 'react'23interface LoadingProps {4size:number5}67export const Loading: React.FC<LoadingProps> = ({size}) => {89return (10 <div className="w-[50%] flex-center h-10">11 <div12 style={{ width: `${size}px`, height: `${size}px` }}13 className="animate-spin">14 <div className="h-full w-full border-4 border-t-purple-50015 border-b-purple-700 rounded-[50%]">16 </div>17 </div>18 </div>19);20}2122
and call it like
1<Loading size={35}/>2
viola